Skip to main content

Sun calculation class from Solarflare module

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:

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 tuple with declination and right ascension

Project details


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.3.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

Daystar-0.0.3-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

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