Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

matlab.io.fits.setBscale

Reset 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);

See Also

Was this topic helpful?