EphCore.SnapshotPipeline.SolarSystemPosition (eph_core v0.1.0)

Copy Markdown View Source

Stage 04: SOLAR_SYSTEM_POSITION — query the ephemeris for body positions.

Summary

Types

t()

@type t() :: %EphCore.SnapshotPipeline.SolarSystemPosition{
  apparent_geocentric_ecliptic_latitude: float() | nil,
  apparent_geocentric_ecliptic_longitude: float() | nil,
  computation_time_us: non_neg_integer(),
  declination: float() | nil,
  ecliptic_frame: atom() | nil,
  ecliptic_latitude: float() | nil,
  ecliptic_longitude: float() | nil,
  frame: atom(),
  geocentric_position_km: {float(), float(), float()},
  geocentric_range_km: float(),
  query_seconds_past_j2000: float(),
  right_ascension: float() | nil,
  target: atom()
}

Functions

resolve(snapshot, target)

@spec resolve(term(), atom()) :: t()

resolve_from_cache(snapshot, target, cache)

@spec resolve_from_cache(term(), atom(), %{
  seconds: float(),
  earth_ssb: {float(), float(), float()}
}) ::
  t()