Skip to content

kanchudeep/SunMoonCalculator

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

SunMoonCalculator

A very simple Sun/Moon calculator without using JPARSEC library.

This is a Swift port of the excellent ephemerides (in Java) by Tomás Alonso Albi.

For specified observer date/time and location (Geodetic: longitude/latitude), following information is calculated:

  • Sun
    • Rise, set, noon (transit) time
    • Azimuth, elevation and transit elevation angles
    • Distance
  • Moon
    • Rise, set, transit time
    • Azimuth, elevation and transit elevation angles
    • Distance
    • Age
    • Moon illumination (percentage)
    • Moon position angle of axis, bright limb angle and paralactic angle
    • Moon phase

Usage

See example.swift.

About

A very simple Sun/Moon calculator without using JPARSEC library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages