Usage for printLOs

Return to directory of Todd's CASA extensions

It's often useful to look up the LO settings or YIG frequency for an ms. This function works as long as the ASDM_RECEIVER table has been imported (e.g. with asis='*'). It essentially calls interpretLOs with show= True. For a similar function that operates on ASDMs and also tries to compute the TFB LO offset, see printLOsFromASDM.

Usage

au.printLOs(ms, parentms='', showWVR=False, showCentralFreq=False, verbose=False, 
        alsoReturnLO2=False, showChannelAverageSpws=False, showOnlyScienceSpws=False
        birdieFreq=None, birdieSpw=None, showEffective=False, showWindowFactors=False)

Options:
   * parentms: If the original has has been split into a fewer number of spws, then you must also specify the name of the parentms.
   * showWVR: include the WVR spws in the list
   * showCentralFreq: if True, then show the mean frequency of each spw,
                               otherwise show the frequency of the first channel
   * alsoReturnLO2
   * showChannelAverageSpws: if True, then include the spws with only 1 channel
   * showOnlyScienceSpws: if True, then only show spws observed with OBSERVE_TARGET intent
   * birdieFreq: if specified, compute the IF of this RF feature
   * birdieSpw: only necessary if more than one LO1 in the science spws
   * showEffective: if True, show effectiveBw and resolution
   * showWindowFactors: if True, then show ratio of effective bandwidth and
         effective resolution to the channel width ([[http://ictjira.alma.cl/browse/ICT-2542][ICT-2542]]).
Returns:
   * a dictionary of the LO1 values for each spw, keyed by integer

Examples

A Band 9 TDM dataset with Band 3 pointing, prior to being split:

CASA <3>: au.printLOs('uid___A002_X4b58a4_X31.ms')
Row refers to the row number in the ASDM_RECEIVER table (starting at 0).
Row spw BB RxBand Ch1Freq Nchan LO1(GHz) LO2(GHz) Sampler YIG(GHz) TFBoffset(MHz)
 1   1  1  03  91.986763  128  97.953075  9.958500 4.00 16.325513
 2   2  1  03  90.978950    1  97.953075  9.958500 4.00 16.325513
 3   3  2  03  93.924263  128  97.953075  8.021000 4.00 16.325513
 4   4  2  03  92.916450    1  97.953075  8.021000 4.00 16.325513
 5   5  3  03 102.002388  128  97.953075  8.041500 4.00 16.325513
 6   6  3  03 102.978950    1  97.953075  8.041500 4.00 16.325513
 7   7  4  03 104.002388  128  97.953075 10.041500 4.00 16.325513
 8   8  4  03 104.978950    1  97.953075 10.041500 4.00 16.325513
10   9  1  09 644.908212  128 638.733900 10.166500 4.00 23.656811
11  10  1  09 645.884775    1 638.733900 10.166500 4.00 23.656811
12  11  2  09 643.137713  128 638.733900  8.396000 4.00 23.656811
13  12  2  09 644.114275    1 638.733900  8.396000 4.00 23.656811
14  13  3  09 646.718383  128 638.733900 11.976670 4.00 23.656811
15  14  3  09 647.694945    1 638.733900 11.976670 4.00 23.656811
16  15  4  09 648.515263  128 638.733900 13.773550 4.00 23.656811
17  16  4  09 649.491825    1 638.733900 13.773550 4.00 23.656811
  Out[3]: 
{1: 97953075000.0,
 2: 97953075000.0,
 3: 97953075000.0,
 4: 97953075000.0,
 5: 97953075000.0,
 6: 97953075000.0,
 7: 97953075000.0,
 8: 97953075000.0,
 9: 638733900000.0,
 10: 638733900000.0,
 11: 638733900000.0,
 12: 638733900000.0,
 13: 638733900000.0,
 14: 638733900000.0,
 15: 638733900000.0,
 16: 638733900000.0}

The same dataset, after being split into the 4 science spws:

CASA <4>: au.printLOs('uid___A002_X4b58a4_X31.ms.split',parentms='uid___A002_X4b58a4_X31.ms')
Row refers to the row number in the ASDM_RECEIVER table (starting at 0).
Row spw BB RxBand Ch1Freq Nchan LO1(GHz) LO2(GHz) Sampler YIG(GHz) TFBoffset(MHz)
10   9  1  09 644.908212  128 638.733900 10.166500 4.00 23.656811
12  11  2  09 643.137713  128 638.733900  8.396000 4.00 23.656811
14  13  3  09 646.718383  128 638.733900 11.976670 4.00 23.656811
16  15  4  09 648.515263  128 638.733900 13.773550 4.00 23.656811
  Out[4]: {0: 638733900000.0, 1: 638733900000.0, 2: 638733900000.0, 3: 638733900000.0}

A Band 7 FDM dataset with TDM setups for pointing and Tsys

CASA <3>: au.printLOs('X3c1.ms', showWVR=T)
Row refers to the row number in the ASDM_RECEIVER table.
Row spw BB RxBand Ch1Freq Nchan LO1(GHz) LO2(GHz) Sampler YIG(GHz) TFBoffset(MHz)
 0   0  0 WVR 184.550000    4
 1   1  1  07 355.740063  128 350.836250  8.896000 4.00 19.490903
 2   2  1  07 356.716625    1 350.836250  8.896000 4.00 19.490903
 3   3  2  07 356.507813  128 350.836250  9.663750 4.00 19.490903
 4   4  2  07 357.484375    1 350.836250  9.663750 4.00 19.490903
 5   5  3  07 346.792187  128 350.836250  8.036250 4.00 19.490903
 6   6  3  07 345.784375    1 350.836250  8.036250 4.00 19.490903
 7   7  4  07 345.182438  128 350.836250  9.646000 4.00 19.490903
 8   8  4  07 344.174625    1 350.836250  9.646000 4.00 19.490903
12   9  1  07 344.386763  128 350.353075  9.958500 4.00 19.464060
13  10  1  07 343.378950    1 350.353075  9.958500 4.00 19.464060
16  11  2  07 346.324263  128 350.353075  8.021000 4.00 19.464060
17  12  2  07 345.316450    1 350.353075  8.021000 4.00 19.464060
20  13  3  07 354.402388  128 350.353075  8.041500 4.00 19.464060
21  14  3  07 355.378950    1 350.353075  8.041500 4.00 19.464060
24  15  4  07 356.402388  128 350.353075 10.041500 4.00 19.464060
25  16  4  07 357.378950    1 350.353075 10.041500 4.00 19.464060
34  17  1  07 356.497936 3840 350.836250  8.896000 4.00 19.490903 3000.000   -0.000
35  18  1  07 356.732189    1 350.836250  8.896000 4.00 19.490903
40  19  4  07 357.734314 3840 350.836250  9.663750 4.00 19.490903 3468.628 +468.628
41  20  4  07 357.499939    1 350.836250  9.663750 4.00 19.490903
42  21  3  07 346.034314 3840 350.836250  8.036250 4.00 19.490903 3000.000   +0.000
43  22  3  07 345.799939    1 350.836250  8.036250 4.00 19.490903
48  23  2  07 343.955936 3840 350.836250  9.646000 4.00 19.490903 3468.628 +468.628
49  24  2  07 344.190189    1 350.836250  9.646000 4.00 19.490903
-- ToddHunter - 2011-11-02
Topic revision: r10 - 2015-08-25, 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