Skip to main content

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

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)

Table of built distributions (wheels) for Daystar 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

0.0.7

1 release file

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page