-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NA returned for night with some coordinates via getSunlightTimes #13
Comments
I have found the same issue, only for calculating the |
Hey, |
Yeah I have encountered the same issue but only for night and nightEnd values at specific dates irrespective of the location points I use. the dates range from 25/05/2023 to 22/07/2023. I don't have this issue for later dates or for other time calculations like nauticalDawn. I would have hoped someone has found a solution by now |
Up |
Hey, As far as I can tell this is still an issue. Between 2023-05-04 and 2023-08-08 for night and nightEnd and between 06-02 and 07-12 for nauticalDawn and nauticalDusk are all NA. Coordinates are lat = 56, lon = 7.5. ;( |
Using suncalc 0.5.0
Some code that recreates the issue:
which returns
Working through the time calculations it looks as if it is tied to the
.hourAngle()
function. Essentially, the value that gets evaluated withinacos()
is < -1 and therefore returnsNA
. Warnings are suppressed here and does not return any type of recognition to the user that this is something that there is trouble to calculate.The text was updated successfully, but these errors were encountered: