pipeline.hsd.cli.hsd_flagdata

hsd_flagdata(vis: list[str] | None = None, autocorr: str | bool | None = None, shadow: str | bool | None = None, scan: str | bool | None = None, scannumber: str | None = None, intents: str | None = None, edgespw: str | bool | None = None, fracspw: str | None = None, fracspwfps: str | float | None = None, online: str | bool | None = None, fileonline: str | None = None, template: str | bool | None = None, filetemplate: str | None = None, pointing: str | bool | None = None, filepointing: str | None = None, incompleteraster: str | bool | None = None, hm_tbuff: str | None = None, tbuff: str | float | None = None, qa0: str | bool | None = None, qa2: str | bool | None = None, parallel: str | bool | None = None, flagbackup: str | bool | None = None) ResultsList[Results][source]

Do basic flagging of a list of MeasurementSets.

The hsd_flagdata data performs basic flagging operations on a list of MeasurementSets including:

  • applying online flags

  • applying a flagging template

  • shadowed antenna data flagging

  • scan-based flagging by intent or scan number

  • edge channel flagging

Parameters:
  • vis -- The list of input MeasurementSets. Defaults to the list of MeasurementSets defined in the pipeline context.

  • autocorr --

    Flag autocorrelation data.

    Default: None (equivalent to False)

  • shadow --

    Flag shadowed antennas.

    Default: None (equivalent to True)

  • scan --

    Flag a list of scans and intents specified by scannumber and intents.

    Default: None (equivalent to True)

  • scannumber --

    A string containing a comma delimited list of scans to be flagged.

    Default: None (equivalent to '')

  • intents --

    A string containing a comma delimited list of intents against which the scans to be flagged are matched. Defaults to intents that are not relevant to pipeline processing.

    Example: '*BANDPASS*'

  • edgespw --

    Flag the edge spectral window channels.

    Default: None (equivalent to True)

  • fracspw --

    Fraction of the baseline correlator TDM edge channels to be flagged.

    Default: None (equivalent to 0.03125)

  • fracspwfps --

    Fraction of the ACA correlator TDM edge channels to be flagged.

    Default: None (equivalent to 0.048387)

  • online --

    Apply the online flags.

    Default: None (equivalent to True)

  • fileonline -- File containing the online flags. These are computed by the h_init or hsd_importdata data tasks. If the online flags files are undefined a name of the form 'msname.flagonline.txt' is assumed.

  • template --

    Apply a flagging template.

    Default: None (equivalent to True)

  • filetemplate -- The name of a text file that contains the flagging template for RFI, birdies, telluric lines, etc. If the template flags files is undefined a name of the form 'msname.flagtemplate.txt' is assumed.

  • pointing --

    Apply a flagging template for pointing flag.

    Default: None (equivalent to True)

  • filepointing -- The name of a text file that contains the flagging template for pointing flag. If the template flags files is undefined a name of the form 'msname.flagpointing.txt' is assumed.

  • incompleteraster --

    Apply commands to flag incomplete raster sequence. If this is False, relevant commands in filepointing are simply commented out.

    Default: None (equivalent to True)

  • hm_tbuff --

    The heuristic for computing the default time interval padding parameter. The options are 'halfint' and 'manual'. In 'halfint' mode tbuff is set to half the maximum of the median integration time of the science and calibrator target observations.

    Default: None (equivalent to 'halfint')

  • tbuff --

    The time in seconds used to pad flagging command time intervals if hm_tbuff='manual'.

    Default: None (equivalent to 0.0)

  • qa0 -- QA0 flags

  • qa2 -- QA2 flags

  • parallel --

    Execute using CASA HPC functionality, if available.

    Options: 'automatic', 'true', 'false', True, False

    Default: None (equivalent to 'automatic')

  • flagbackup --

    Back up any pre-existing flags before applying new ones.

    Default: None (equivalent to True)

Returns:

The results object for the pipeline task is returned.

Examples

  1. Do basic flagging on a MeasurementSet

>>> hsd_flagdata()

2. Do basic flagging on a MeasurementSet flagging additional scans selected by number as well.

>>> hsd_flagdata(scannumber='13,18')