Return to directory of Todd's CASA extensions

Remove all lines of an ASCII file that contain a specified keystring, or any one of a list of such strings. In the context of ALMA data reduction, this function is used to remove specific (or all) QA0 flags which were not properly thought out or implemented initially, leading to excessive data flagging. Rachel maintains a description of these flags.


au.removeLines(filename, keys=['QA0', 'HIGH_RMS', 'HIGHER'], negate=False)
  • keys: a single string, or a list of strings
  • negate: if True, then remove lines that do NOT have one of these strings
  • the number of lines remaining in the output file

-- ToddHunter - 2015-05-12
Topic revision: r3 - 2015-09-19, 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