Skip to main content

python package for lunar and solar information

Project description

lunastro

lunastro is a python library for lunar and solar information

Installation:

To install lunastro:

    pip install lunastro

Functions

    get_lunar_phase() # returns phase
    get_lunar_age() # returns age of moon
    get_lunar_age_percentage() # returns age percentage of moon
    solardistance() # returns distance to the sun in miles
    declination(galactic_latitude, galactic_longtitude) # solar declination
    eclipticlongtitude(anomaly) # ecliptic longtitude
    rightAscension(galactic_latitude, galactic_longtitude) # right Ascension
    azimuth(hour_angle, latitude, declination) # azimuth
    hourangle() # returns solar hour angle (approximate)

Astronomical Measurement:

    lightyeardist_to_miles(lightyears)
    miles_to_lightyeardist(miles)
    miles_to_au(miles)
    au_to_miles(au)
    parsec_to_miles(parsec)
    miles_to_parsec(miles)

Lunar Usage:

:
    
    from lunation.main import myMoon
    # create instance of myMoon
    moon = myMoon()
    
    # functions
    phase = moon.get_lunar_phase() # returns lunar phase
    age = moon.get_lunar_age() # returns lunar age
    percent = moon.get_lunar_age_percent() # returns percent of lunar age as a decimal

The library can also be used to calculate distance from the sun

Solar Usage:

    
    from lunation.sun import Sun
    # instance of Sun
    sun = Sun()
    distance = sun.solardistance() # returns solar distance in miles

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lunastro-0.0.7.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

lunastro-0.0.7-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page