GreenCal.Day.Moon (GreenCal v0.1.1)

Copy Markdown View Source

Lunar part of a GreenCal.Day.

Summary

Types

t()

The three trend fields are the three independent lunar cycles: :trend follows the declination (ascending/descending — the cycle biodynamic sowing calendars use), :illumination_trend the phase (waxing/waning), :distance_trend the orbit (approaching/receding).

Types

t()

@type t() :: %GreenCal.Day.Moon{
  declination: float(),
  distance_km: float(),
  distance_trend: :approaching | :receding,
  ecliptic_latitude: float(),
  elongation: float(),
  illuminated_fraction: float(),
  illumination_trend: :waxing | :waning,
  node: %{type: :ascending | :descending, at: DateTime.t()} | nil,
  phase:
    :new_moon
    | :waxing_crescent
    | :first_quarter
    | :waxing_gibbous
    | :full_moon
    | :waning_gibbous
    | :last_quarter
    | :waning_crescent,
  rise: DateTime.t() | nil,
  set: DateTime.t() | nil,
  state: :normal | :always_above | :always_below,
  transit: DateTime.t() | nil,
  trend: :ascending | :descending
}

The three trend fields are the three independent lunar cycles: :trend follows the declination (ascending/descending — the cycle biodynamic sowing calendars use), :illumination_trend the phase (waxing/waning), :distance_trend the orbit (approaching/receding).