Skip to content

alanwsmith/retrograde-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retrograde Calculator

Figuring out what's in retrograde and when

Overview

This project produces a JSON file the identifies if a planet (or the moon) is in retrograde on any given day between Jan. 1, 2000 and Dec. 31, 2100.

The calculations were made for midnight UTC time each day.

Data File Keys

The data comes from the de440s.bsp file. The keys in that file are:

1 MERCURY BARYCENTER
2 VENUS BARYCENTER
3 EARTH BARYCENTER
4 MARS BARYCENTER
5 JUPITER BARYCENTER
6 SATURN BARYCENTER
7 URANUS BARYCENTER
8 NEPTUNE BARYCENTER
9 PLUTO BARYCENTER
10 SUN
199 MERCURY
99 EARTH
299 VENUS
301 MOON
499 MARS

The project uses the BARYCENTER for each planent. The moon is pulled from the only available source (key: 301).

Validation

The code identifies Mercury as being in retrograde from:

  • 2022-12-30 ~ 2023-01-18

Other sources list the following

  • 2022-12-29 ~ 2023-01-18 - Source

  • 2022-12-22 ~ 2023-01-18 - Source

  • 2022-12-28 ~ 2023-01-18 - Source

The specific dates float around each other, but the overall blocks of time line up. Given that there doesn't seem to be a definitive source this takes the validaiton as far as I know how.

References

I didn't use all of these, but they're what I ended up having open so dropping them here.

About

Figuring out what's in retrograde and when

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published