update_dq
- acstools.utils_findsat_mrt.update_dq(filename, ext, mask, dqval=16384, verbose=True, expand_mask=False)
Update the given image and DQ extension with the given satellite trails mask and flag.
This function was moved over from
acstools.satdet.- Parameters:
- filenamestr
FITS image filename to update.
- extint, str, or tuple
DQ extension, as accepted by
astropy.io.fits, to update.- maskndarray
Boolean mask, with
Truemarking the satellite trail(s). This can be the result(s) fromacstools.satdet.make_mask().- dqvalint, optional
DQ value to use for the trail. Default value of 16384 is tailored for ACS/WFC.
- verbosebool, optional
Print extra information to the terminal.
- expand_maskbool, optional
Allows the mask to be expanded to match the size of the original mask. This is relevant for masks that were generated used binned versions of the original image.