A library that computes the ephemerides.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
504 B

  1. #!/usr/bin/env python3
  2. from enum import Enum, auto
  3. class MoonPhaseType(Enum):
  4. """An enumeration of moon phases."""
  5. NEW_MOON = 1
  6. WAXING_CRESCENT = 2
  7. FIRST_QUARTER = 3
  8. WAXING_GIBBOUS = 4
  9. FULL_MOON = 5
  10. WANING_GIBBOUS = 6
  11. LAST_QUARTER = 7
  12. WANING_CRESCENT = 8
  13. class EventType(Enum):
  14. """An enumeration for the supported event types."""
  15. OPPOSITION = 1
  16. CONJUNCTION = 2
  17. OCCULTATION = 3
  18. MAXIMAL_ELONGATION = 4
  19. MOON_PERIGEE = 5
  20. MOON_APOGEE = 6