mirror of
https://github.com/cosinekitty/astronomy.git
synced 2025-12-30 02:58:42 -05:00
When parsing the rise/set data, the Linux `sort` utility had weird behavior. Fixed it by making parse_riseset.py do its own sorting in an order that makes sense, before writing to riseset.txt.
549 B
549 B
Moon and Sun rise/set test data
Data originally obtained from: https://aa.usno.navy.mil/data/docs/RS_OneYear.php
That link is now broken. The calculator moved to: https://aa.usno.navy.mil/data/RS_OneYear
To add more test cases:
- Visit the second link above. Enter year, latitude, longitude.
- Generate a year's worth of rise/set data.
- View page source.
- Copy and paste just the preformatted calendar section.
- Save as an html file.
- Run the script ./parse_riseset.py
- Verify that the new data has been inserted into riseset.txt.