Open bsipocz opened 5 years ago
This looks like an issue with the user FITS file, I'm not too inclined to apply 'fix' for them under the covers, it's probably good they get this error and fix, then resave the file, so that it's valid FITS. FWIW, imexam will also load any numpy array to either ginga or ds9, if you can open the fits file you can display the data array to the viewer with viewer.view(numpy_array_name)
.
I'm not proposing to "fix" it by default, and I could work around this as detailed in #170, but I would find it very useful to have a kwarg that would let me fix it on the fly when opening. Otherwise I agree that it would be nice if all fits files coming down from telescopes would follow the standard, but I'm afraid a world like that would probably is utopia.
okay, I'll add a parameter to the load_fits, but set it to not fix by default. Do you think fix
would work as the name?
what about verify_fits
with None
as default, and then the strings as options that can be passed to verify()
?
I'm not sure whether this is an imexam or more a ginga issue, possibly both. I'm opening it first here as imexam is the layer the user interacts with: