astropy 5.0

Parameters
__init__(self, data=None, header=None, name=None, do_not_scale_image_data=False, uint=True, scale_back=None, ver=None)

Parameters

data : array

The data in the HDU.

header : `~astropy.io.fits.Header`

The header to be used (as a template). If header is :None:None:`None`, a minimal header will be provided.

name : str, optional

The name of the HDU, will be the value of the keyword EXTNAME .

do_not_scale_image_data : bool, optional

If :None:None:`True`, image data is not scaled using BSCALE/BZERO values when read. (default: False)

uint : bool, optional

Interpret signed integer data where BZERO is the central value and BSCALE == 1 as unsigned integer data. For example, int16 data with BZERO = 32768 and BSCALE = 1 would be treated as uint16 data. (default: True)

scale_back : bool, optional

If :None:None:`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 :None:None:`False`. (default: None)

ver : int > 0 or None, optional

The ver of the HDU, will be the value of the keyword EXTVER . If not given or None, it defaults to the value of the EXTVER card of the header or 1. (default: None)

Construct an image HDU.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /astropy/io/fits/hdu/image.py#1124
type: <class 'function'>
Commit: