matlab.io.fits.setBscale
Set FITS image scaling
Syntax
matlab.io.fits.setBscale(fptr,bscale,bzero)
Description
matlab.io.fits.setBscale(fptr,bscale,bzero) sets the scaling factors
for the primary array or image extension of the specified FITS file. When you read data from the
primary image array or image extension, the retrieved data is automatically scaled according to
this equation:
readData = bscale*storedData + bzero
When you write data to the primary image array or image extension, the written data is automatically scaled according to the inverse equation:
writtenData = (specifiedData – bzero)/bscale
This function affects only the automatic scaling performed when the file data is read or
written. The function does not change the BSCALE or
BZERO keyword values.
Examples
Tips
This function corresponds to the
fits_set_bscale(ffpscl) function in the CFITSIO library C API.To use this function, you must be familiar with the CFITSIO C interface. You can access the CFITSIO documentation at the CFITSIO website.