Mars24 algorithm
Mars Calendar and orbit calculation based on Allison and McEwan (2000), Allison (1997)
Allison, M., and M. McEwen 2000. A post-Pathfinder evaluation of aerocentric solar coordinates with improved timing recipes for Mars seasonal/diurnal climate studies. Planet. Space Sci. 48, 215-235
Allison, M. 1997. Accurate analytic representations of solar time and seasons on Mars with applications to the Pathfinder/Surveyor missions. Geophys. Res. Lett. 24, 1967-1970.
http://www.giss.nasa.gov/tools/mars24/
Returns the Mars Year date based on the reference date from Clancy(2000): 1955 April 11, 11am
The Mean Solar Time at the Prime Meridian
Returns the Fictional Mean Sun angle
The Local Mean Solar Time given a planetographic longitude
Local true solar time is the Mean solar time + equation of time perturbation
Returns the Areocentric solar longitude (aka Ls)
Calculates the Mars Mean Anomaly given a j2000 julian day offset
Return the Mars Solar date
Returns the Mars Year date based on the reference date 1955 April 11, 10:56:31 mtc after finding the j2k offsets of the zeroes of the Mars_Ls function.
Returns the perturbations to apply to the FMS Angle from orbital perturbations
Interface, calls west_to_east to convert longitude
The true anomaly (v) - the Mean anomaly (M)
Equation of Time, to convert between Local Mean Solar Time and Local True Solar Time, and make pretty analemma plots
Instantaneous orbital radius
Heliocentric Latitude, which is not Ls
Heliocentric longitude, which is not Ls (offsets are different)
Hourangle is the longitude - subsolar longitude
Returns the j2000 epoch as a float
Returns j2000 based on MSD
Returns the julian day offset since the J2000 epoch
Returns j2000 offset based on MSD
Returns the julian day number given milliseconds since Jan 1 1970
Returns the TT Julian day given a UTC Julian day
Returns the current time in milliseconds since Jan 1 1970
Azimuth Angle, between sun and north pole
Returns the solar declination
Elevation = 90-Zenith, angle between sun and flat surface
Zenith Angle, angle between sun and nadir
returns the longitude of the subsolar point for a given julian day.
Returns the offset in seconds from a julian date in Terrestrial Time (TT) to a Julian day in Coordinated Universal Time (UTC)
Returns the offset in seconds from a julian date in Terrestrial Time (TT) to a Julian day in Coordinated Universal Time (UTC) [MATH]
Returns the offset in seconds from a julian date in Terrestrial Time (TT) to a Julian day in Coordinated Universal Time (UTC) [NUMPY]
Convert from west longitude to east longitude, or vice versa.