ratt-ru / CubiCal

A fast radio interferometric calibration suite.
GNU General Public License v2.0
18 stars 13 forks source link

Need option to apply bitflags and save to FLAG/FLAG_ROW in apply-only mode #208

Closed o-smirnov closed 6 years ago

o-smirnov commented 6 years ago

@IanHeywood pointed out the following useful scenario which needs to be supported:

  1. FLAG/FLAG_ROW is copied to "legacy" bitflag as usual

  2. CubiCal is run in solve-only (perhaps rebinned mode), generates solutions, and outputs some new flags into the "cubical" parset, but doesn't touch FLAG/FLAG_ROW

  3. CubiCal is run in apply-correct mode -- but now we want legacy+cubical to go into FLAG/FLAG_ROW

Step 3 is not presently supported (as CubiCal only updates FLAG/FLAG_ROW if new flags are generated), but should be easy to add. Perhaps as --flags-save-legacy apply.

o-smirnov commented 6 years ago

Also done on the madmax-moreplots branch. @IanHeywood please test. Use --flags-save-legacy apply.