getUnflaggedScans

Return to directory of Todd's CASA extensions

Uses the af tool to find a list of scans for a specific spw and field that are not (mostly) flagged. See also getUnflaggedAntennas.

Usage:

au.getUnflaggedScans(vis, spw, field, maxFlaggedFraction=0.20, verbose=False)
Inputs:
  • spw: spw ID (integer or string)
  • field: either field ID (integer or string) or name
  • maxFractionFlagged: note that 0.125 is normal for TDM edge-channel flagging
Returns:
  • an integer list of scan numbers

Example:

CASA <2>: au.getUnflaggedScans('uid___A002_Xad565b_X1da0.ms', 17, 0)
  Out[2]: [5, 9, 11, 14, 16, 18, 20, 22, 24, 26, 28, 30, 33, 35, 37, 39, 41, 43, 45, 47, 50, 52, 54, 56, 58, 60, 62, 67, 69, 71, 73, 75, 77, 79, 81, 83, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 128, 133, 136, 138, 140, 142, 144, 146, 148, 150, 153, 155, 157]     
-- ToddHunter - 2015-12-21
Topic revision: r1 - 2015-12-21, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback