Open sbailey opened 4 years ago
Ah, these are not merely cosmetic errors. SIMPLE
should definitely not be in any header but the primary.
BUNIT
only applies to image HDUs. For a binary table, individual columns have TUNITXX
headers, but BUNIT
makes no sense and is definitely an error.
Yes, it is an error in the sense that SIMPLE and BUNIT shouldn't be there (it is a leftover from inheriting header keywords from some upstream file), but it is "cosmetic" in the sense that it doesn't prevent fitsio / astropy.io.fits / desispec.io.read_frame etc. from reading and using the file just fine. But they do prevent us from using fitsverify as a boolean check on whether the file is corrupted (as opposed to their current state of useable while not completely following the fits standard).
OK, fair enough. Different definitions of "error"!
Our fibermap extensions don't pass fitsverify, e.g.
These appear to be cosmetic issues about following the standard, but we should fix them to make it easier to use fitsverify to validate that none of the files in a production are corrupted.