Some FITS files (like the ones generated by the Herschel mission, see attached file), do not have NAXIS, CROTAi, CDELTi, etc. in the main header, but in the Primary HDU header.
Since WWT only checks the main header of the FITS file (until the END keyword), these FITS files cannot be loaded by the program and they fail with the error message: "The image file did not contain valid AVM metadata to position it in the sky".
The reason is that:
NumAxis becomes 0 because NAXIS is in the primary HDU header (not parsed).
WCS is only computed if NumAxis > 1.
Valid AVM means valid WCS.
Some FITS files (like the ones generated by the Herschel mission, see attached file), do not have NAXIS, CROTAi, CDELTi, etc. in the main header, but in the Primary HDU header.
Since WWT only checks the main header of the FITS file (until the END keyword), these FITS files cannot be loaded by the program and they fail with the error message: "The image file did not contain valid AVM metadata to position it in the sky".
The reason is that: NumAxis becomes 0 because NAXIS is in the primary HDU header (not parsed). WCS is only computed if NumAxis > 1. Valid AVM means valid WCS.
test.zip