The ease of exchanging modules between users is one of the most powerful features of MeqTrees.
Stand-alone scripts
Stand-alone scripts can be loaded into the MeqBrowser with the TDL menu option "load TDL script...", and used directly. They have a _tdl_define_forest() function to build the tree (use the "blue button"), and a _test_forest() or _tdl_job_xyz() function to execute it (use the "exec" button). They usually allow the user to set some parameters via the TDLoptions or the TDLexec menus on the browser.
MS data inspection
This
workshop script is a very simple MS inspector. You will need to adjust it to a particular MS:
The channels argument to include_ms_options() may need to be changed (or deleted, if you just want to read all channels)
Image sizes in imaging_options() may need adjustment
If the array is not WSRT, use Meow.IfrArray(ns,station_list) instead. For VLA, use .VLA(ns).
at present only the first field and spectral window of the MS is read. I'll need to fix up Meow to add selectors for these. In the future I'll just use Ger's pycasatable interface to read an MS and supply these options at compile-time.
Flagging
This
workshop script is a simple flagger. It may need to be adapted to your MS just like the script above.
Make sure you leave "Write flags to MS" unchecked at first, until you're happy with the flags. Then run it again with this option checked to commit the flags to the MS.
For a detailed discussion, see this presentation from the second workshop (look for "Flagging" somewhere midway through).
Reducing calibrator observations
Calibrators are dominating "point" sources, usually in the field centre.
Plug-in scripts
Plug-in scripts can be imported into other scripts with minimum fuss. Obviously, this is all about interfaces.
Jones matrices
Flagging subtrees
Two simple flaggers (absolute value clipping and rms-clipping) may be imported from the
flagger script discussed above.
