crrej_plus

acstools.acs_destripe_plus.crrej_plus(filelist, outroot, keep_intermediate_files=False, verbose=True)

Perform CRREJ and ACS2D on given BLV_TMP or BLC_TMP files. The purpose of this is primarily for combining destriped products from destripe_plus().

Note

If you want to run this step, it is important to keep intermediate files when running destripe_plus().

Parameters:
  • filelist (str or list of str) –

    List of BLV_TMP or BLC_TMP files to be combined and processed. Do not mix BLV and BLC in the same list, but rather run this once for BLV and once for BLC separately. Input filenames in one of these formats:

    • a Python list of filenames

    • a partial filename with wildcards (’*blx_tmp.fits’)

    • filename of an ASN table (‘j12345670_asn.fits’)

    • an at-file (@input)

  • outroot (str) – Rootname for combined product, which will be named <outroot>_crj.fits (for BLV inputs) or <outroot>_crc.fits (for BLC inputs).

  • keep_intermediate_files (bool) – Keep de-striped CRJ_TMP or CRC_TMP around after CRREJ.

  • verbose (bool) – Print informational messages.

Raises:

ValueError – Ambiguous input list.

Examples

>>> from acstools.acs_destripe_plus import destripe_plus, crrej_plus

First, run destripe_plus(). Remember to keep its intermediate files:

>>> destripe_plus(..., keep_intermediate_files=True)

Now, run this function, once on BLV only, and once again on BLC only:

>>> rootname = 'j12345678'
>>> crrej_plus('*_blv_tmp.fits', rootname)
>>> crrej_plus('*_blc_tmp.fits', rootname)