hifa_polcalflag

Note

Parameters set to None will use intelligent defaults from the pipeline context. Pass explicit values to override context defaults.

hifa_polcalflag(vis=None, examineCrossPolSum=None)[source]

Flag outlier visibilities in the polarization calibrator data.

Performs a temporary calibration and applies it, then identifies and flags outlier visibilities in the polarization calibrator by examining the scalar difference of calibrated amplitudes minus model amplitudes (the same approach as hifa_bandpassflag and hifa_gfluxscaleflag). The polarization calibrator is always treated as a multi-scan calibrator.

The WebLog shows amplitude vs. uv-distance and amplitude vs. time plots before flagging and (if any flags were found) after flagging.

Parameters:
  • vis --

    The list of input MeasurementSets. Defaults to the list of MeasurementSets specified in the hifa_importdata task. '': use all MeasurementSets in the context

    Examples: 'ngc5921.ms', ['ngc5921a.ms', ngc5921b.ms', 'ngc5921c.ms']

  • examineCrossPolSum -- Whether to examine the XY+YX sum for multi-scan full-polarization data. Defaults to False, so only XX+YY is evaluated because the cross-pol sum can be non-flat when Stokes I is stable.

Return type:

ResultsList[Results]

Notes

QA = 1 - (fraction of data newly flagged). An additional score of 0.8 is assigned if any spw has an antenna that is fully flagged.

Returns:

The results object for the pipeline task is returned.

Return type:

ResultsList[Results]

Examples

  1. Run with recommended settings to flag visibility outliers in the polarization calibrator data:

>>> hifa_polcalflag()