matlab.io.fits.setBscale
Reset FITS image scaling
Syntax
setBscale(fptr,BSCALE,BZERO)
Description
setBscale(fptr,BSCALE,BZERO)
resets the
scaling factors in the primary array or image extension according
to the equation
output = (FITS array) * BSCALE + BZERO
The inverse formula is used when writing data values to the FITS file.
This only affects the automatic scaling performed when the data elements are read. It does not change the BSCALE and BZERO keyword values.
Examples
import matlab.io.* fptr = fits.openFile('tst0012.fits'); fits.setBscale(fptr,2.0,0.5); data = fits.readImg(fptr); fits.closeFile(fptr);