imutil.pixels.find_satpix
imutil.pixels.find_satpix(
ccd,
mask=None,
satlevel=65535,
bezels=None,
order_xyz=True,
update_header=True,
verbose=0,
)Finds saturated pixel values excluding masked pixels.
Parameters
ccd :~astropy.nddata.CCDData,~numpy.ndarray-
The ccd to find extreme values. If
ndarray,update_headerwill automatically be set toFalse. mask :~astropy.nddata.CCDData-like (e.g.,~astropy.io.fits.PrimaryHDU,~astropy.io.fits.ImageHDU,~astropy.io.fits.HDUList),~numpy.ndarray, path-like, or number-like, optional. = None-
The mask to be used. To reduce file I/O time, better to provide
~numpy.ndarray. Default:None. satlevel : float = 65535-
The saturation level. Pixels >=
satlevelwill be treated as saturated pixels, except for those masked bymask. Default:65535. bezels :listoflistofint, optional. = None-
If given, must be a
listoflistofint. Eachlistofintis in the form of[lower, upper], i.e., the firstlowerand lastupperrows/columns are ignored. Default:None. order_xyz :bool, optional. = True-
Whether
bezelin xyz order or not (python order:xyz_order[::-1]). Default:True.
Returns
: min-
The
listof extrema pixel values.