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.
 
 

61 lines
1022 B

  1. #!/usr/bin/env python3
  2. from enum import Enum
  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 SeasonType(Enum):
  14. MARCH_EQUINOX = 0
  15. JUNE_SOLSTICE = 1
  16. SEPTEMBER_EQUINOX = 2
  17. DECEMBER_SOLSTICE = 3
  18. class EventType(Enum):
  19. """An enumeration for the supported event types."""
  20. OPPOSITION = 1
  21. CONJUNCTION = 2
  22. OCCULTATION = 3
  23. MAXIMAL_ELONGATION = 4
  24. MOON_PERIGEE = 5
  25. MOON_APOGEE = 6
  26. SEASON_CHANGE = 7
  27. class ObjectType(Enum):
  28. """An enumeration of object types"""
  29. STAR = 0
  30. PLANET = 1
  31. DWARF_PLANET = 11
  32. SATELLITE = 2
  33. class ObjectIdentifier(Enum):
  34. """An enumeration of identifiers for objects"""
  35. SUN = 0
  36. EARTH = 1
  37. MOON = 11
  38. MERCURY = 2
  39. VENUS = 3
  40. MARS = 4
  41. JUPITER = 5
  42. SATURN = 6
  43. URANUS = 7
  44. NEPTUNE = 8
  45. PLUTO = 9