Open jknodlseder opened 8 years ago
@jknodlseder - A few questions:
OBS_ID
?OBS_ID
for a while or forever?astropy.io.fits
return it as an int. So we're only talking about table column dtypes for EVENTS and OBS_INDEX or other tables that have OBS_ID
as a column?Just to give the counter-argument why we might want to keep int
:
int
and science tools only support int
:
https://github.com/gammapy/gammapy/search?utf8=%E2%9C%93&q=OBS_ID
https://github.com/gammalib/gammalib/search?utf8=%E2%9C%93&q=OBS_IDOBS_ID
that I've used myself is to merge events from multiple observations (all for HESS 1) into one event list and then join that with event lists from other recos and cuts to study event reconstruction differences and cut differences. Of course it can be done differently.My impression is that int is simpler and more convenient and is in place, so I don't see the advantage of doing the change.
@jknodlseder - if you're available I'll put this on the agenda for next Tuesday's IACT DL3 telcon: https://github.com/open-gamma-ray-astro/2016-04_IACT_DL3_Meeting/blob/master/notes/2016-09-06-IACT_DL3_Telcon.md
@jknodlseder - Do you still think CTA / IACT DL3 data should change OBS_ID to be a string instead of an int?
It would be quite a big breaking change, at least in Gammapy we work with OBS_ID
as integer in several places, and presumably in ctools you do as well?
@kosack - Is there a plan for this in CTA already? Should discussions continue here on the DL3 spec, or is there a different spec / process now in CTA?
The event list extension has an OBS_ID keyword that is currently defined as integer. This comes from the original event list format specification from Karl. It appears however that OGIP has in the meantime switched to a string, see for example https://heasarc.gsfc.nasa.gov/docs/heasarc/ofwg/docs/general/ogip_94_001/ogip_94_001.html which says:
So I would propose to change the OBS_ID keyword from integer to string.