scale(self, type=None, option='old', bscale=1, bzero=0)
Calling this method will scale self.data
and update the keywords of BSCALE
and BZERO
in self._header
and self._image_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: if "old"
, use the original BSCALE
and BZERO
values when the data was read/created. If "minmax"
, use the minimum and maximum of the data to scale. The option will be overwritten by any user-specified bscale/bzero values.
user specified BSCALE
and BZERO
values.
Scale image data by using BSCALE
and BZERO
.
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