-
Notifications
You must be signed in to change notification settings - Fork 194
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
simulate_3d notebook is broken #2040
Comments
@registerrier I committed a preliminary fix in e697a3e, reading the pointing info from one of the 1dc event files. I think the |
@adonath As a user, I would prefer to be able to simulate maps from scratch, specially for positions with no previous observations. In such a case, reading pointing info from previous observations is not really a solution. If you don't want to adapt |
I see you point @AtreyeeS, but I think in practice it turns out to be difficult, because for the So I'm not 100% sure what to do here. To me it seems the |
Erm, I see the technical issue here, but it is really unpleasant. I will not want to "plan" an entire observation is most cases. Perhaps we can have a dummy |
Indeed, there are different use cases for MC simulation besides the full event sampler. Typically:
The later should not require a So I am not sure we should completely get rid of it. |
In #2052, @registerrier added back the option to evaluate the background by giving a pointing position on the sky, now both is possible. |
After the introduction of
FixedPointingInfo
and the modification ofmake_map_background_irf
to useFOV
coordinates in PR #2033 , the notebook simulate_3d.ipynb is broken.This is due to the fact that
make_map_background_irf
now takes aFixedPointingInfo
rather than a coordinate as input.Two possible solutions:
FixedPointingInfo
with adict
containing all required information in the notebook. This basically mean that we need an event file besides the IRFs to read it from. Or we need to build thedict
programmatically.make_map_background_irf
to be able to deal with a simpleSkyCoord
for the pointing, in which case no transformation toAltAz
is performed. This is not really nice but has the advantage of being backward compatible.Opinions @adonath @AtreyeeS @watsonjj ?
The text was updated successfully, but these errors were encountered: