mooncomparison.frink

View or download mooncomparison.frink in plain text format

// Program to compare against USNO moon position tables.
use sun.frink

lat = DMS[42,22] North
long = DMS[71, 7] West

starttime = #2006-11-26 10:43 Eastern#
endtime =  #2006-11-26 22:43 Eastern#
for time = starttime to endtime step 1 minute
{
   [az, alt] = refractedMoonAzimuthAltitude[time, lat, long]
   println[(time->Eastern) + "\t" + format[alt,degree,1] + "\t" + format[(az + 180 degrees) mod circle,degree,1]]
}


View or download mooncomparison.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 17836 days, 23 hours, 33 minutes ago.