acstools.satdet.update_dq(filename, ext, mask, dqval=16384, verbose=True)

Update the given image and DQ extension with the given satellite trails mask and flag.

  • 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 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.