Module: LibTAD::Astronomy

Defined in:
lib/types/astronomy/moonphase.rb,
lib/types/astronomy/astronomy_day.rb,
lib/types/astronomy/astronomy_event.rb,
lib/types/astronomy/astronomy_object.rb,
lib/types/astronomy/astronomy_current.rb,
lib/types/astronomy/astronomy_location.rb,
lib/types/astronomy/astronomy_day_event.rb,
lib/types/astronomy/astronomy_event_class.rb,
lib/types/astronomy/astronomy_object_type.rb,
lib/types/astronomy/astronomy_object_details.rb

Defined Under Namespace

Classes: AstronomyCurrent, AstronomyDay, AstronomyDayEvent, AstronomyEvent, AstronomyLocation, AstronomyObject, AstronomyObjectDetails, MoonPhase

Constant Summary collapse

ASTRONOMY_EVENT_CLASS =

All valid astronomy event classes

[
  # Combination of all known classes.
  :all,

  # The current phase for the place requested. Additional attributes for illumination (moon), azimuth, distance. 
  :current,

  # Day length. Day length is not reported as an event, but as a separate attribute.
  :daylength,

  # Meridian (Noon, highest point) and Anti-Meridian (lowest point) events.
  :meridian,

  # Moon phase events. Additionally to the phase events (only occurring on four days per lunar month),
  # an additional attribute for the current moon phase is reported for every day.
  :phase,
  
  # Set and rise events. Event times take atmospheric refraction into account.
  :setrise,

  # Combination of all 3 twilight classes.
  :twilight,

  # Civil twilight (-6°).
  :twilight6,

  # Nautical twilight (-12°).
  :twilight12,

  # Astronomical twilight (-18°).
  :twilight18
].freeze
ASTRONOMY_OBJECT_TYPE =

All valid astronomy object types.

[
  # The sun.
  :sun,

  # The moon.
  :moon,

  # Mercury.
  :mercury,

  # Venus.
  :venus,

  # Mars.
  :mars,

  # Jupiter.
  :jupiter,

  # Saturn.
  :saturn,

  # Uranus.
  :uranus,

  # Neptune.
  :neptune,

  # Pluto.
  :pluto
].freeze