Planetary Rise and Set Times Using aa

By WJR, Thu June 23 2022

A set of scripts (bash and awk) which produce localized planet rise and set times utilizing output from aa (Stephen L. Moshier's astronomical almanac program).

Example Usage & Output takes standard aa input (refer to my post on aa for an example) and, optionally, time zone and time zone label. In the example below, rise and set times are displayed for Mars, in July for EDT (-4 hours from UT).

jeffr@Europa: ~/planet-rs $ ./ Mars-2022.txt -4 EDT | grep July
rises 2022 July 1 Friday 2h 10m 23.190s EDT
sets 2022 July 1 Friday 15h 15m 38.982s EDT
rises 2022 July 2 Saturday 2h 08m 14.168s EDT
sets 2022 July 2 Saturday 15h 15m 15.134s EDT
rises 2022 July 3 Sunday 2h 06m 05.293s EDT
sets 2022 July 3 Sunday 15h 14m 50.878s EDT
rises 2022 July 4 Monday 2h 03m 56.569s EDT
sets 2022 July 4 Monday 15h 14m 26.205s EDT
rises 2022 July 5 Tuesday 2h 01m 47.999s EDT
sets 2022 July 5 Tuesday 15h 14m 01.107s EDT


The package below includes a sample aa.ini (edit to reflect desired latitude, longitude, etc.) as well as input files for various planets. The scripts have been tested on Ubuntu Linux and Cygwin.

planet-rs.tar.gz, 7.9K

Related Articles