This is an old revision of the document!
Table of Contents
Support Tools
CCSBETA
make_lis - script that makes a lis file without having to use showlog:
usage: make_lis [-h] -e EXPERIMENT [-p PROFILE] [-m MPCSOURCE] [-s SAVE] make_lis: error: argument -e/--experiment is required
EEE(2)
flag_weights.py - flag all visibilities under weight threshold x:
usage: flag_weights.py [-h] <measurement set> <weight threshold> Flag visibilities with weights below the provided threshold. positional arguments: msdata Measurement set containing the data to be corrected. threshold Visibilities with a weight below this value will be flagged. Must be positive. optional arguments: -h, --help show this help message and exit --version show program's version number and exit -v, --verbose Only checks the visibilities to flag (do not flag the data).
multiphase.py - script to setup a shell script (or multiple lis files) for multiple phase centre experiments. Should no longer be required with new showlog/make_lis:
usage: multiphase.py [-h] [-b] [-c] [-s] experiment pcBaseName phaseCenters [phaseCenters ...] This script will attempt to make a sane sfx2ms shell script file for multi- phase center experiments. Expects a <exp>.vxsm and a base <exp>_sfxc2ms.sh file in the working directory. positional arguments: experiment Experiment name pcBaseName Base phase center name phaseCenters list of phase centers (space delimited) optional arguments: -h, --help show this help message and exit -b, --include-base Include the base phase center in the output? Default=False -c, --include-cal Include the calibrator sources in each measurement set. Defaults to False, which means calibrator sources will be included in the first measurement set only -s, --separate-lis Writes a lis file for each phase centre. Can then be run with j2ms2 -v lisfile
parallel - multiple phase centre speedups - parallel is a linux utility to run tasks in parallel. Here's an example for running flag_weights.py, tConvert for multiple phase centres in eg078f. Similar can be done for j2ms2 etc:
flagging:
parallel –eta -j 10 flag_weights.py {} 0.7 ::: *.ms_HD*
tConvert: Make a wrapper script:
#!/bin/bash ####tConv-wrap.sh #!/bin/bash tConvert $1 $2 echo "${1#eg078f.ms_*} -> $2" >> pc-idi.txt mv $1 msdone/
Run it in parallel:
parallel –dry-run –eta –xapply ./tConv-wrap.sh {1} eg078f_{2}_1.IDI ::: eg078f.ms* ::: {2..699}