darkskyapp / astro

30 stars 13 forks source link

astro

A library that calculates the position of the sun and moon in the sky. THIS LIBRARY IS NO LONGER ACTIVELY MAINTAINED. PLEASE FORK IF YOU WISH TO CONTINUE USING IT.

Usage

Methods for calculating positions of the moon are in the lunar submodule; method for calculating positions of the sun, in solar.

All methods operate in units of degrees (for angles, including latitudes and longitudes), milliseconds (for timestamps), and AU (for distances).