bundles / astropy 7.0.1 / astropy / io / fits / hdu / image / _ImageBaseHDU / _scale_internal
function
astropy.io.fits.hdu.image:_ImageBaseHDU._scale_internal
source: /astropy/io/fits/hdu/image.py:482
Signature
def _scale_internal(self, type = None, option = old, bscale = None, bzero = None, blank = 0)Summary
This is an internal implementation of the scale method, which also supports handling BLANK properly.
Extended Summary
TODO: This is only needed for fixing #3865 without introducing any public API changes. We should support BLANK better when rescaling data, and when that is added the need for this internal interface should go away.
Note: the default of blank=0 merely reflects the current behavior, and is not necessarily a deliberate choice (better would be to disallow conversion of floats to ints without specifying a BLANK if there are NaN/inf values).
Aliases
astropy.io.fits.hdu.image._ImageBaseHDU._scale_internal