You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are these two points where the output is not correct, they seem to be random, in my application I use the first and the last value to get the corresponding twilight for evening and morning. In this case the last value was failing so I just copied it and added one minute and a a proper value is obtained.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
The problem is probably caused by the fact that for these times the Sun's altitude is very close to -18deg (the limit for astronomical twilight).
Running soar.sun_altaz(Time('2024-12-09T07:58:00.468')).alt gives altitude of -17.998091718201977 deg.
However, soar.twilight_morning_astronomical(Time('2024-12-09T07:58:00.468'),which='previous').isot works fine. But, which='next' fails. In the case of which='nearest', both values are calculated and compared according to the given time.
Due to the change in the day length, the next morning twilight is 2024-12-10T07:58:01.967 which is 24 hours + 1.5 seconds later. Also, this warning tells something similar:
WARNING: TargetNeverUpWarning: Target with index 0 does not cross horizon=-18.0 deg within 24 hours
The issue can be fixed using the only values not masked in comparison - soar.twilight_morning_astronomical(Time('2024-12-09T07:58:00.468'),which='next').masked is True. Probably here in astroplan code:
I've found that issues #464 and #533 present a similar problem.
I'm using astroplan version
0.10.1
I'm running the following code for testing:
And I obtain the following output, I removed some of them for brevity:
There are these two points where the output is not correct, they seem to be random, in my application I use the first and the last value to get the corresponding twilight for evening and morning. In this case the last value was failing so I just copied it and added one minute and a a proper value is obtained.
Thanks in advance!
The text was updated successfully, but these errors were encountered: