Closed esheldon closed 8 years ago
The motivation of cleaning is to prevent special keywords from getting over-written, such as column defs or compression keywords
I think the following keywords should not be cleaned for images
bunit, bscale, bzero
but they should be cleaned for tables, since fitsverify doesn't like them
http://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify/
Current master implements this, but I would like to hear from others
Hi, I'm currently processing some images, and reading/writing using fitsio. The BUNIT is an important header attribute for this (giving units Jy/beam, which other software uses for scaling), but this is currently wiped when writing with fitsio.write. Currently trying to find a workaround, to keep the header intact. Cheers
I thought these would only be cleaned from tables. What version of fitsio are you using?
You can also turn off cleaning with clean=False
Hi Erin, Thank you for the fast reply. Update to latest version and adding clean=False fixed everything. Cheers
Since this required clean=False, I take it you are working with tables since BUNIT is not cleaned from images. Can you give some insight into how BUNIT is being used in a table?
I think the clean=False was not necessary here, as working with images. Likely the version update alone fixed everything. Thanks very much for your help.
Generally, are there keywords being cleaned that should be kept?