bundles / astropy 7.0.1 / astropy / io / fits / hdu / image / ImageHDU / __init__
function
astropy.io.fits.hdu.image:ImageHDU.__init__
source: /astropy/io/fits/hdu/image.py:1192
Signature
def __init__(self, data = None, header = None, name = None, do_not_scale_image_data = False, uint = True, scale_back = None, ver = None)Summary
Construct an image HDU.
Parameters
data: arrayThe data in the HDU.
header: `~astropy.io.fits.Header`The header to be used (as a template). If
headeris None, a minimal header will be provided.name: str, optionalThe name of the HDU, will be the value of the keyword
EXTNAME.do_not_scale_image_data: bool, optionalIf True, image data is not scaled using BSCALE/BZERO values when read. (default: False)
uint: bool, optionalInterpret signed integer data where
BZEROis the central value andBSCALE == 1as unsigned integer data. For example,int16data withBZERO = 32768andBSCALE = 1would be treated asuint16data. (default: True)scale_back: bool, optionalIf True, when saving changes to a file that contained scaled image data, restore the data to the original type and reapply the original BSCALE/BZERO values. This could lead to loss of accuracy if scaling back to integer values after performing floating point operations on the data. Pseudo-unsigned integers are automatically rescaled unless scale_back is explicitly set to False. (default: None)
ver: int > 0 or None, optionalThe ver of the HDU, will be the value of the keyword
EXTVER. If not given or None, it defaults to the value of theEXTVERcard of theheaderor 1. (default: None)
Aliases
astropy.io.fits.ImageHDU.__init__