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.
 
 

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