-
Notifications
You must be signed in to change notification settings - Fork 26
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
IRF output files should have sufficient metadata #126
Comments
This is already possible, you can pass arbitrary header cards to the create HDU functions or edit the headers afterwards. |
This should be demonstrated in the example notebooks then, as a best practice. Otherwise, it will be done in a non-standard way by people that use the library |
I am very reluctant on adding any more stuff to the event display example. Even more, I'm inclined to completely remove it as an example and only have it in the tests. It is not an example on how pyirf should be used, it was just a script to compare the results to Event Display. People using pyirf should understand what the functions do and what the needed input / the output is. Not just follow this "example". I also don't want to duplicate all the optional headers of the GADF specification or even add new conventions. Or we need to rediscuss the scope of pyirf. In my understanding, pyirf should follow a specification (right now GADF) not create a new specification. |
Hi @kosack the headers will be tricky, because it is difficult to know what we will want to have inside them in one year from now or so. Azimuth and Altitude sounds fine, but again it might happen that some simulations are done for points in the sky, while others for small ranges of Alt/Az. Also we should be very clear which azimuth we take, the Corsika one, or the geographical one, and if the range is -180 to 180 or 0-360 @maxnoe I think it would be a pity to remove this eventdisplay example. It is really useful to the users and it can be used as @kosack says to show best-practices in the headers, extension naming, etc. |
When writing IRF files in
pyirf.io.gadf
format, it should be possible to add some extra metadata describing the context of the IRF and its observation parameters.That will make it easier later to open and interpolate between IRFs. For that we should define an initial set of header keywords. Perhaps, reusing some standard FITS headers when possible, such as:
Additionally, having the layout name, subarray name, prod name, etc would help avoid errors.
This will facilitate the bookkeeping that is necessary to do IRF interpolation, as in #124 #125
The text was updated successfully, but these errors were encountered: