getSBGain

Return to directory of Todd's CASA extensions

Reads the sideband gain ratio from the ASDM_CALATMOSPHERE table of a measurement set. Returns either all of the values, or only those rows which match the input parameters. See also plotSBGain and plotSBGainFromASDM.

Usage:

au.getSBGain(vis, pol='', antenna='', baseband='', scan='', receiverBand='', debug=False)
  • antenna: must be the string name (e.g. 'DA41')
  • scan: a single scan number (as string or integer)
  • baseband: a single baseband number (as string or integer)
  • receiverBand: a single receiver band number (as string or integer)
  • pol: '0', 'X', '1', 'Y' or ''=both Returns 6 arrays:
  • sideband gain, antenna name, receiver band number, baseband number, time (in MJD seconds), scan number

Example:

CASA <7>: au.getSBGain('uid___A002_X652932_X2438.ms',pol='X',antenna='DA42',baseband=1,scan=3)
  Out[7]:
(array([ 0.9837355]),
 array(['DA42'],
      dtype='|S5'),
 array([7]),
 array([1]),
 array([  4.87680327e+09]),
 array([3]))

-- ToddHunter - 2013-09-11
Topic revision: r2 - 2014-10-04, 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