Usage for plotPhaseSolutions
Return to directory of Todd's CASA extensions
Calls
listPhaseSolutions for a series of self-calibration solution files for different targets
from the same dataset and generates a plot of the median absolute phase solution vs. angle between the target
and its associated phase calibrator. Also calls
getMostRecentMove() for each antenna for
comparison to the number of discrepancies.
Usage
au.plotPhaseSolutions(caltables=[], sort='value', threshold=0.0, phasecal=[], drop=1):
- caltables: list of self-calibration gain tables
- phasecal: the phase-calibrator(s) matching the sequence of caltables. It can be field ID(s) or field name(s), scalar or list. If a list, then it must be the same length as caltables.
- threshold: only use phases with an absolute value larger than this (deg)
- drop: number of highest x-values to drop when fitting the line
Example:
# sources that used field 12 as phase calibrator
caltables = ['selfp1_SPT2311-54', 'selfp1_SPT2319-55', 'selfp1_SPT2340-59', 'selfp1_SPT2349-56', 'selfp1_SPT2349-50', 'selfp1_SPT2351-57', 'selfp1_SPT2353-50', 'selfp1_SPT2354-58', 'selfp1_SPT2357-51', 'selfp1_SPT0020-51', 'selfp1_SPT0027-50', 'selfp1_J2329-4730 ICRF']
# sources that used field 16 as phase calibrator
caltables += ['selfp1_SPT0103-45', 'selfp1_SPT0109-47', 'selfp1_SPT0113-46', 'selfp1_SPT0125-47', 'selfp1_SPT0125-50', 'selfp1_SPT0128-51', 'selfp1_J0106-4034 ICRF']
au.plotPhaseSolutions(caltables, phasecal=[2]*12+[16]*7)
# output
Observation Time = 4851555000.513961 = 2012-08-13 06:10:01 UT
Antenna Discrepancies MostRecentMove
DA41: 4 ( 353 days before this observation)
DA42: 2 ( 334 days before this observation)
DA43: 1 ( 187 days before this observation)
DA44: 4 ( 201 days before this observation)
DA50: 10 ( 8 days before this observation)
DV01: 3 ( 135 days before this observation)
DV02: 1 ( 43 days before this observation)
DV03: 4 ( 184 days before this observation)
DV08: 2 ( 125 days before this observation)
DV10: 8 ( 186 days before this observation)
DV12: 1 (15565 days before this observation)
DV13: 3 ( 147 days before this observation)
DV14: 14 ( 366 days before this observation)
DV15: 1 ( 151 days before this observation)
DV16: 4 ( 259 days before this observation)
DV17: 7 ( 159 days before this observation)
DV18: 2 ( 157 days before this observation)
DV19: 9 ( 93 days before this observation)
DV20: 9 ( 37 days before this observation)
DV21: 17 ( 8 days before this observation)
PM01: 3 ( 60 days before this observation)
PM02: 16 ( 142 days before this observation)
PM03: 4 ( 75 days before this observation)
Target Angle_to_phase_calibrator
SPT2349-50 2.62 deg
SPT0128-51 0.92 deg
SPT2354-58 5.09 deg
SPT2353-50 3.09 deg
SPT0109-47 6.23 deg
SPT2349-56 3.65 deg
SPT2319-55 6.23 deg
J2329-4730 ICRF 7.28 deg
SPT2340-59 6.98 deg
SPT0020-51 3.70 deg
SPT0103-45 8.03 deg
SPT0125-47 4.78 deg
J0106-4034 ICRF 12.29 deg
SPT2311-54 7.02 deg
SPT0027-50 5.47 deg
SPT0113-46 6.57 deg
SPT2357-51 1.29 deg
SPT0125-50 1.78 deg
SPT2351-57 4.27 deg
plot left in uid___A002_X49990a_X1f.ms.split.cal.selfcal_phase_vs_separation.png
--
ToddHunter - 2012-09-06