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
I'm using astroplan to schedule observations, and one of the many tasks is getting the nautical twilight time each night. It worked perfectly for many months, until it unexpectedly broke on the 3rd of November.
The code to reproduce the error is the following:
import astroplan
from astropy.time import Time
date = Time("2022-11-03")
lasilla = astroplan.Observer.at_site("lasilla")
evening_twilight = lasilla.twilight_evening_nautical(date, which="next")
The output:
WARNING: TargetNeverUpWarning: Target with index 0 does not cross horizon=-12.0 deg within 24 hours [astroplan.observer]
<Time object: scale='utc' format='jd' value=nan>
For some reason, it thinks the Sun never crosses the horizon on the 3rd of November.
To troubleshoot, I tried changing the dates, and it works for a day earlier (02/11) or a day later (04/11). So it's specifically with the 3rd of November, and of any year as well.
And apparently this error only appears with "lasilla" at the site of the observer. When I change it to "paranal" it does work. So I'm a bit lost on what could be causing this problem.
The text was updated successfully, but these errors were encountered:
To add, I just tested the same thing with twilight_evening_civil() and with twilight_evening_astronomical() and it works in both cases. So the problem is just with the nautical twilight
I'm using astroplan to schedule observations, and one of the many tasks is getting the nautical twilight time each night. It worked perfectly for many months, until it unexpectedly broke on the 3rd of November.
The code to reproduce the error is the following:
The output:
For some reason, it thinks the Sun never crosses the horizon on the 3rd of November.
To troubleshoot, I tried changing the dates, and it works for a day earlier (02/11) or a day later (04/11). So it's specifically with the 3rd of November, and of any year as well.
And apparently this error only appears with "lasilla" at the site of the observer. When I change it to "paranal" it does work. So I'm a bit lost on what could be causing this problem.
The text was updated successfully, but these errors were encountered: