MillionConcepts / pdr

[P]lanetary [D]ata [R]eader - A single function to read all Planetary Data System (PDS) data into Python
Other
60 stars 6 forks source link

`Data.dump_browse()` fails on FITS files opened in primary mode #60

Open m-stclair opened 3 months ago

m-stclair commented 3 months ago

Data does not assign its identifiers attribute when reading a FITS file in 'primary' mode, but the browsification workflow checks identifiers for information related to scaling and special constants. Browse dumps of non-PDS FITS files would be very convenient for many applications, and these values can be easily determined from FITS headers (and usually will have been automatically applied anyway).