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 Distributions
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 Daystar-1.0.1-py3-none-any.whl.
File metadata
- Download URL: Daystar-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
397897c0db11ddf65eb540ef8b3717015b135bbe48d6b34cc4303d8e158f031f
|
|
| MD5 |
d49a783df5dbc5fb683fb315f8123c54
|
|
| BLAKE2b-256 |
13b668bd0bfa363e24ec5419f1c9eb2a0ec5e55fd8c289596f653349673a4225
|