removeLines
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.
Usage:
au.removeLines(filename, keys=['QA0', 'HIGH_RMS', 'HIGHER'], negate=False)
Inputs:
- keys: a single string, or a list of strings
- negate: if True, then remove lines that do NOT have one of these strings
Returns:
- the number of lines remaining in the output file
--
ToddHunter - 2015-05-12