By William Jeffrey Rankin, Sat Jul 26 2025
I've made a few improvements to my shell-script interface for aa (Stephen L. Moshier's astronomical almanac program):
XML is now included among the output formats (csv, html, xml, ps, raw, and table). It's specified just like any of the others:
jrankin@Callisto: ~/planet-rs $ ./planet-rs.sh Mars.txt xml -4 EDT
<?xml version="1.0" encoding="UTF-8"?>
<rs>
<input_file>Mars.txt</input_file>
<day>
<date>07/01/2025</date>
<rise>11:02 EDT</rise>
<set>00:11 EDT</set>
</day>
<day>
<date>07/02/2025</date>
<rise>11:01 EDT</rise>
<set>00:08 EDT</set>
</day>
<day>
<date>07/03/2025</date>
<rise>11:00 EDT</rise>
<set>00:06 EDT</set>
</day>
...
An XSLT is included (fmt-html.xsl
) to transform the XML to HTML.
The shell script year.sh
outputs all formats (and all objects) for the designated year (if year is not specified, current year is output). Example usage and output:
jrankin@Callisto: ~/planet-rs $ ./year.sh
Generating JAN files...
...for 0 (csv)
...for 0 (raw)
...for 0 (html)
...for 0 (table)
...for 0 (ps)
...for 0 (ps to pdf)
...for 0 (xml)
...for 2 (csv)
...for 2 (raw)
...for 2 (html)
...for 2 (table)
...for 2 (ps)
...for 2 (ps to pdf)
...for 2 (xml)
...
Files are output to directory by format and named according to (YYYY)-(MMM)-(object).(format)
.
planet-rs.tar.gz, 5.9K