Angelus.Ephemeride (Angelus v1.0.0)

Copy Markdown View Source

A geocentric tropical ephemeris at one UTC instant.

This module is the return value of Angelus.get_ephemeride/1.

Summary

Types

calculation_reference()

@type calculation_reference() :: %{
  observer: :earth_center,
  earth: %{
    shape: :oblate_spheroid,
    equatorial_radius_km: float(),
    polar_radius_km: float(),
    flattening: float()
  },
  coordinate_frame: :true_ecliptic_of_date,
  aberration_correction: String.t()
}

motion()

@type motion() :: :direct | :retrograde | :stationary

position()

@type position() :: %{body: atom(), lat: float(), decl: float(), motion: motion()}

t()

@type t() :: %Angelus.Ephemeride{
  datetime: DateTime.t(),
  day: Date.t(),
  positions: [position()],
  reference: calculation_reference(),
  sidereal_time: %{
    hour: non_neg_integer(),
    minute: non_neg_integer(),
    second: non_neg_integer()
  },
  weekday: atom()
}