twoSourceDataset

Return to directory of Todd's CASA extensions

This function modifies the intents on a 2-source ALMA dataset to allow it to be run through the ALMA manual script generator. It must have a Tsys scan.

Usage:

au.twoSourceDataset(vis, calibrator=0, phase=0, target=1, tsysScan=1, bandpassAllScans=False, override=False)
Inputs:
  • calibrator: the field ID of the flux/bandpass calibrator
  • phase: the field ID of the phase calibrator
  • target: the field ID(s) of the science target(s) (integer or list)
  • tsysScan: the scan number of the Tsys scan to use (usually 1)
  • bandpassAllScans: put BANDPASS intent on all scans on the calibrator field, not just the first non-Tsys scan
  • override: force add Tsys intent to scan (only needed after a mistake in running this task)

Example:

CASA <4>: au.twoSourceDataset('uid___A002_X912bb1_X347.ms')
Found fieldnames =  ['J0239-0234' 'J0228-0337']
FIELD_ID 0 has name J0239-0234
Got 1347416 rows in the ms matching field=0
current intents are:
CALIBRATE_ATMOSPHERE#OFF_SOURCE,CALIBRATE_WVR#OFF_SOURCE
CALIBRATE_ATMOSPHERE#ON_SOURCE,CALIBRATE_WVR#ON_SOURCE
CALIBRATE_ATMOSPHERE#ON_SOURCE,CALIBRATE_WVR#ON_SOURCE
CALIBRATE_PHASE#ON_SOURCE,CALIBRATE_AMPLI#ON_SOURCE,CALIBRATE_WVR#ON_SOURCE,CALIBRATE_DELAY#ON_SOURCE
setting CALIBRATE_PHASE#ON_SOURCE
adding intent to state table
state_id is 8
writing new STATE table
Found fieldnames =  ['J0239-0234' 'J0228-0337']
FIELD_ID 0 has name J0239-0234
Querying: 'FIELD_ID==0 AND SCAN_NUMBER in [1]'
Got 48916 rows in the ms matching field=0 and scan in [1]
current intents are:
CALIBRATE_PHASE#ON_SOURCE
setting CALIBRATE_ATMOSPHERE#ON_SOURCE
adding intent to state table
state_id is 9
writing new STATE table
Found fieldnames =  ['J0239-0234' 'J0228-0337']
FIELD_ID 0 has name J0239-0234
Querying: 'FIELD_ID==0 AND SCAN_NUMBER in [2]'
Got 259700 rows in the ms matching field=0 and scan in [2]
current intents are:
CALIBRATE_PHASE#ON_SOURCE
setting CALIBRATE_FLUX#ON_SOURCE
setting CALIBRATE_BANDPASS#ON_SOURCE
setting CALIBRATE_PHASE#ON_SOURCE
adding intent to state table
state_id is 10
writing new STATE table
Found fieldnames =  ['J0239-0234' 'J0228-0337']
FIELD_ID 1 has name J0228-0337
Got 1298500 rows in the ms matching field=1
current intents are:
CALIBRATE_PHASE#ON_SOURCE,CALIBRATE_AMPLI#ON_SOURCE,CALIBRATE_WVR#ON_SOURCE,CALIBRATE_DELAY#ON_SOURCE
setting OBSERVE_TARGET#ON_SOURCE
adding intent to state table
state_id is 11
writing new STATE table

-- ToddHunter - 2014-10-22
Topic revision: r2 - 2014-10-29, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback