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

For a particular location within the southeastern United States on some days, requesting an astral.sun generates a ValueError, but on previous and following days in the same location, the correct...

INPUT place = 'Auckland' region = 'New Zealand' latitude = -36.8509 longitude = 174.7645 elevation = 196 # metres above sea level Timezone: Pacific/Auckland Date: 2023-01-13 OUTPUT moonrise: None moonset:...

In my tests validated against real data, this fixes sunset/sunrise issues for the location i'm working with detailed in #83. offset comparison no longer causes previous day to be returned...

Hello, when using the astral package I realized there is an error in the documentation of the night function: The documentation was stating the night function to calculate the time...

Here are a few code simplifications and refactorings in separate commits 1. Fix number of microseconds in an hour 2. Simplify number clipping 3. Simplify timedelta usage 4. Simplify string...

Since astral 2.2, computing the sunset time appears to be return the time for the previous day. More accurately, if the sunset time ends up being UTC the next day,...

Hi, I'm trying to use this library for calculating sunrises and sunsets, but finding several missing data points when looking at Arctic locations. All times are in UTC My test...

I think there is a bug in method `adjust_to_obscuring_feature `in module `sun.py` in line 249: If `elevation[0]` is the height difference and `elevation[1]` is the distance to obscuring feature, then...

Hi, I have a use case where I know my longitude and latitude but not the timezone (using IP to get my current approx lat and long). I want to...