These routines set or modify the internal parameters used by CFITSIO
to either scale the data or to represent undefined pixels. Generally
CFITSIO will scale the data according to the values of the BSCALE and
BZERO (or TSCALn and TZEROn) keywords, however these routines may be
used to override the keyword values. This may be useful when one wants
to read or write the raw unscaled values in the FITS file. Similarly,
CFITSIO generally uses the value of the BLANK or TNULLn keyword to
signify an undefined pixel, but these routines may be used to override
this value. These routines do not create or modify the corresponding
header keyword values. See Appendix B for the definition of the
parameters used in these routines.
- 1
- Reset the scaling factors in the primary array or image extension; does
not change the BSCALE and BZERO keyword values and only affects the
automatic scaling performed when the data elements are written/read
to/from the FITS file. When reading from a FITS file the returned
data value = (the value given in the FITS array) * BSCALE + BZERO.
The inverse formula is used when writing data values to the FITS
file.
int fits_set_bscale / ffpscl
(fitsfile *fptr, double scale, double zero, > int *status)
- 2
- Reset the scaling parameters for a table column; does not change
the TSCALn or TZEROn keyword values and only affects the automatic
scaling performed when the data elements are written/read to/from
the FITS file. When reading from a FITS file the returned data
value = (the value given in the FITS array) * TSCAL + TZERO. The
inverse formula is used when writing data values to the FITS file.
int fits_set_tscale / fftscl
(fitsfile *fptr, int colnum, double scale, double zero,
> int *status)
- 3
- Define the integer value to be used to signify undefined pixels in the
primary array or image extension. This is only used if BITPIX = 8, 16,
or 32. This does not create or change the value of the BLANK keyword in
the header.
int fits_set_imgnull / ffpnul
(fitsfile *fptr, LONGLONG nulval, > int *status)
- 4
- Define the string to be used to signify undefined pixels in
a column in an ASCII table. This does not create or change the value
of the TNULLn keyword.
int fits_set_atblnull / ffsnul
(fitsfile *fptr, int colnum, char *nulstr, > int *status)
- 5
- Define the value to be used to signify undefined pixels in
an integer column in a binary table (where TFORMn = 'B', 'I', or 'J').
This does not create or change the value of the TNULLn keyword.
int fits_set_btblnull / fftnul
(fitsfile *fptr, int colnum, LONGLONG nulval, > int *status)