matlab.io.fits.setTscale
Set table column scaling
Syntax
matlab.io.fits.setTscale(fptr,colnum,tscale,tzero)
Description
matlab.io.fits.setTscale(fptr,colnum,tscale,tzero) sets the scaling
factors for the specified table column. When you read data from the specified table column, the
retrieved data is automatically scaled according to this equation:
readData = tscale*storedData + tzero
When you write data to the specified table column, the written data is automatically scaled according to the inverse equation:
writtenData = (specifiedData – tzero)/tscale
This function affects only the automatic scaling performed when the file data is read or
written. The function does not change the TSCALE or
TZERO keyword values.
Examples
Tips
This function corresponds to the
fits_set_tscale(fftscl) 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.