scale(self, type=None, option='old', bscale=None, bzero=None)
Call to this method will scale data
and update the keywords of BSCALE
and BZERO
in the HDU's header. This method should only be used right before writing to the output file, as the data will be scaled and is therefore not very usable after the call.
destination data type, use a string representing a numpy dtype name, (e.g. 'uint8'
, 'int16'
, 'float32'
etc.). If is :None:None:`None`
, use the current data type.
How to scale the data: "old"
uses the original BSCALE
and BZERO
values from when the data was read/created (defaulting to 1 and 0 if they don't exist). For integer data only, "minmax"
uses the minimum and maximum of the data to scale. User-specified bscale
/ bzero
values always take precedence.
User-specified BSCALE
and BZERO
values
Scale image data by using BSCALE
/ BZERO
.
The following pages refer to to this document either explicitly or contain code examples using this.
astropy.io.fits.hdu.image._ImageBaseHDU._scale_internal
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