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)
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
Release history Release notifications | RSS feed
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.6.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lunastro-0.0.6.tar.gz.
File metadata
- Download URL: lunastro-0.0.6.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a0e0334533df11ee444467c70b5680f0915d9a153c61654c2c58fea936fc845
|
|
| MD5 |
333b320c64325de00590a245396c1ff5
|
|
| BLAKE2b-256 |
7a2577488e0a7e7e0b2add29a5a7224d5b841a2870f6e7a1dac415dc7cfd93ae
|
File details
Details for the file lunastro-0.0.6-py3-none-any.whl.
File metadata
- Download URL: lunastro-0.0.6-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87a6ea00d0f03bf4e855c55d98802d277eb754c4711da2d084aff734aff5722d
|
|
| MD5 |
b33ae81002e7b58de75c1ab4a33a26fe
|
|
| BLAKE2b-256 |
b8e66fb377cc1e12b954b2093f1393d7988985d3004aa0786ab49a51797d5e86
|