Skip to content

Calculate sun position, sunlight phases, moon position, and lunar phase.

License

Notifications You must be signed in to change notification settings

g-rppl/SunCalc.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SunCalc.jl

License: MIT Coverage Build status Code Style: Blue

About

Julia implementation of the SunCalc package for calculating sun position, sunlight phases (times for sunrise, sunset, dusk, etc.), moon position, and lunar phase for the given location and time.

Most calculations are based on the formulas given in the Astronomy Answers articles about position of the sun and the planets. You can find more information on twilight phases calculated by SunCalc.jl in the Twilight article on Wikipedia.

Installation

The package is registered in the General registry and can therefore be installed with:

using Pkg
pkg.add("SunCalc")