Currently, out-of-range floating-point data is always normalized by mapping [min,max] to [0,1].
This is a reasonable default, but other options should be presented to the user at FITS read time.
For example, the CWHITE and CBLACK values, if present, could be used to set the white and black points.
PEDESTAL could also be presented in an option to transform ADU data.
Phits could also attempt to compute reasonable default black/white points through some simple histogram binning.
Currently, out-of-range floating-point data is always normalized by mapping
[min,max]to[0,1].This is a reasonable default, but other options should be presented to the user at FITS read time.
For example, the
CWHITEandCBLACKvalues, if present, could be used to set the white and black points.PEDESTALcould also be presented in an option to transform ADU data.Phits could also attempt to compute reasonable default black/white points through some simple histogram binning.