#696 closed defect (fixed)
When reading U16 data, the keywords BZERO/BSCALE are put into the metadata
| Reported by: | Owned by: | Paul Price | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | fits | Version: | 0.9.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
When reading U16 data with psFitsReadImage, the BSCALE/BZERO values are correctly applied
to the data, but they are then _also_ put into the metadata. If the image is then displayed
using a fits viewer, the scale factors are applied again.
The standard keys (e.g. SIMPLE, NAXIS) are also preserved; all should be removed.
Change History (6)
comment:1 by , 20 years ago
| Owner: | changed from to |
|---|
comment:3 by , 20 years ago
| Owner: | changed from to |
|---|
psFitsWriteHeader now blocks several keywords from being written: "SIMPLE",
"XTENSION", "BITPIX", "NAXIS", "EXTNAME", "BSCALE", "BZERO", "TFIELDS".
It also blocks keywords that start with "NAXIS", "TTYPE", "TFORM" (with the aim
of blocking NAXIS1, NAXIS2, etc, but will also block NAXISABC).

David, let me know if it doesn't make sense to assign this one to you.