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:
  • filename (str) – FITS image filename to update.

  • ext (int, str, or tuple) – DQ extension, as accepted by astropy.io.fits, to update.

  • mask (ndarray) – Boolean mask, with True marking the satellite trail(s). This can be the result(s) from acstools.satdet.make_mask().

  • dqval (int, optional) – DQ value to use for the trail. Default value of 16384 is tailored for ACS/WFC.

  • verbose (bool, optional) – Print extra information to the terminal.

  • expand_mask (bool, 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.