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
Release files for Daystar 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Daystar-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / Daystar-1.0.1-py3-none-any.whl
| Download URL | Daystar-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
397897c0db11ddf65eb540ef8b3717015b135bbe48d6b34cc4303d8e158f031f
|
|
BLAKE2b-256 checksum How to use checksums |
13b668bd0bfa363e24ec5419f1c9eb2a0ec5e55fd8c289596f653349673a4225
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|