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.

53 lines
884 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
  21. class ObjectType(Enum):
  22. """An enumeration of object types"""
  23. STAR = 0
  24. PLANET = 1
  25. DWARF_PLANET = 11
  26. SATELLITE = 2
  27. class ObjectIdentifier(Enum):
  28. """An enumeration of identifiers for objects"""
  29. SUN = 0
  30. EARTH = 1
  31. MOON = 11
  32. MERCURY = 2
  33. VENUS = 3
  34. MARS = 4
  35. JUPITER = 5
  36. SATURN = 6
  37. URANUS = 7
  38. NEPTUNE = 8
  39. PLUTO = 9