astral icon indicating copy to clipboard operation
astral copied to clipboard

Python calculations for the position of the sun and moon.

Results 57 astral issues
Sort by recently updated
recently updated
newest added

Could we add an optional argument to the sun() function linked below for the users to specify key(s) to return? https://github.com/sffjunkie/astral/blob/3.2/src/astral/sun.py#L1232 https://github.com/sffjunkie/astral/blob/3.2/src/astral/location.py#L225 e.g. If only "sunrise" and "sunset" are needed,...

Hi! Not here to nag you or ask for features, just wanted to ask if this error also occurs to the developers here when you run mypy against atral's code:...

Sunset and sunrise calculations occurred error The code are below: ```python day = datetime.date(2024, 3, 22) lat = 38.41129869 lon = 90.137575 city = LocationInfo('name', 'region', 'timezone/name', lat, lon) try:...

version 3.2 I used latitude 39.3528 and longitude 106.7333 to calculate the sunrise and sunset times for the whole year of 2015, starting on February 3, 2015, the calculated sunrise...

Is there a way to calculate at what time the moon reaches its highest point on the sky, after rising? [the moon culminant point, noon]. I looked through the documentation...

Several of us have been using the astral 3 release, and have run into a problem where something we have done is causing a ValueError to be raised, and then...

The following code computes the `noon` time and elevation of any given day. Then it uses the elevation to compute the time of that given day at the previously obtained...