Solar calculation class for Python
Project description
Daystar
Daystar is a python library that provides a convenient class for Solar calculations based off of my other library Solarflare. Check out Solarflare at https://pypi.org/project/Solarflare/
In order to use this library, just create an instance of the daystar class:
from Daystar import *
sun = Daystar(latitude, longitude)
The functions provided are (they all default to datetime.datetime.now()):
risetime(date)
: returns the sunrisesettime(date)
: returns the sunsetsolarnoon(date)
: returns the solar noon timehrangle(date)
: returns the hour angle for the time and datecoordinates(date)
: returns a dictionary with declination and right ascension ("dec" and "ra")mean(date)
: returns the mean anomalytrue(date)
: returns the true anomalyceq(date)
: returns the equation of centersolar_julian(date)
: returns "rise" and "set" dictionary with sunrise and sunset julian datesalt(date)
: returns solar altitudeazi(date)
: returns the solar azimuthnadir(date)
: returns the time of nadir
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
Daystar-0.0.6.tar.gz
(3.0 kB
view hashes)