Skip to main content

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 sunrise
  • settime(date): returns the sunset
  • solarnoon(date): returns the solar noon time
  • hrangle(date): returns the hour angle for the time and date
  • coordinates(date): returns a dictionary with declination and right ascension ("dec" and "ra")
  • mean(date): returns the mean anomaly
  • true(date): returns the true anomaly
  • ceq(date): returns the equation of center
  • solar_julian(date): returns "rise" and "set" dictionary with sunrise and sunset julian dates
  • alt(date): returns solar altitude
  • azi(date): returns the solar azimuth
  • nadir(date): returns the time of nadir

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Daystar-1.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for Daystar-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 397897c0db11ddf65eb540ef8b3717015b135bbe48d6b34cc4303d8e158f031f
MD5 d49a783df5dbc5fb683fb315f8123c54
BLAKE2b-256 13b668bd0bfa363e24ec5419f1c9eb2a0ec5e55fd8c289596f653349673a4225

See more details on using hashes here.

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