-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
rise time not found (too close from reference time ?) #464
Comments
Hi, you're correct – if the reference time is very close to the rise/set time you're trying to find, you can "miss" the rise/set time that you're looking for with our simple grid search technique. This is sort of mentioned in the docs here but I would agree it could be made clearer. Have you tried adjusting the keyword argument |
Thanks for having a look into this problem. Yes I have tried with It is clearly a bug, or at least an omitted feature. My feeling is that the algorithm has been build under the assumption that only one crossing is possible in the investigated period, and it is not true ! With the example mentioned earlier I have checked that indeed in From this, the indices of the intervals in the time array
one get :
whereas one would expect
And we also get the twoarrays for the 2 time bins :
The drama happens at the following lines where the first crossing is dropped!
Sincerely, this code looks very complicated for what it does. What do you think? |
Any progress on this issue? Thanks ! |
@bmorris3 kind reminder on this issue and my last post... |
Hello,
astroplan 0.7 dev1236
I found several cases where
obs.target_rise_time
miss the closest next rise time and return the next one.It seems it happens when the reference time is too close from the rise time to be found.
Below an example (jupyter notebook) that reproduces this anomaly.
Thanks in advance for your help,
Thierry S.
It is below the horizon, compute next rise
2046-01-31 13:28:17.143
2046-01-29 13:36:09.289
<Time object: scale='utc' format='iso' value=2046-01-30 13:32:13.838>
The text was updated successfully, but these errors were encountered: