[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
/ lunar-longitude Public archive

A Fortran module to calculate the exact position of the moon, accurate to 0.01 degrees.

License

Notifications You must be signed in to change notification settings

Infrapink/lunar-longitude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lunar-longitude

This is a simple Fortran module to calculate the exact geocentric position of the moon, accurate to 0.01 degrees. It is based on the algorithm described in Chapter 47 of Astronomical Algorithms, 2nd Edition by Jean Meeus (Willmann-Bell, 1998)

It uses the Mean Julian Day, which runs from noon to noon UTC. Thus, for example, 01 January 1970 lasts from 2440586.5 to 2440587.5. This must be taken into account when passing arguments to getlambda().

lunar_longitude_f.f90 uses functions, while lunar_longitude_s.f90 uses subroutines; the latter is necessary if you want to interface with Python via f2py.

About

A Fortran module to calculate the exact position of the moon, accurate to 0.01 degrees.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published