jdaviz
jdaviz copied to clipboard
Cubeviz parser should accept SCI without ERR
Reporter: pllim
As a user, when I have a gigantic cube and I don't really care about ERR showing in uncert-viewer. I should not be forced to load it just to make Cubeviz happy.
Two possible use cases:
- A file with only PRIMARY and SCI extensions, no ERR.
- A file with everything but I am only interested in SCI.
What I want to happen:
- Cubeviz would just load it happily as-is. Shows SCI in flux-viewer and an empty
uncert-viewer. - Cubeviz would let me provide an optional keyword telling it I just want the SCI extension.
What is currently happening:
- Cubeviz throws an error complaining ERR is missing.
- There is no way to do this.
Workaround? I tried loading the SCI (pf["SCI"].data) into a Spectrum1D object (giving it flux unit, mask, WCS myself). It would load without complaining about missing ERR but the loaded image is rotated 90 degrees, which is super annoying and out of scope of this ticket.
DISCLAIMER: This issue was autocreated by the Jdaviz Issue Creation Bot on behalf of the reporter. If any information is incorrect, please contact Duy Nguyen