Usage for printLOsFromASDM

Return to directory of Todd's CASA extensions

It's sometimes useful to know the LO settings or YIG frequencies in a dataset. Unfortunately the ASDM does not contain the value of the TFB LO (a.k.a. LO4) for FDM projects, so printing LO1 and LO2 is the best we can do. However, where applicable, I have attempted to compute the value of the TFB LO based on the central frequency of each spectral window and the other LOs. An optional second argument specifies the spw or list of spws to print. See also getLOsFromASDM to get a dictionary result, or printLOs to operate on an ms instead.

Usage:

au.printLOsFromASDM(sdmfile, spw='', showCentralFreq=False, showYIG=True,
    showEffective=False, showChannelAverageSpws=False, showWindowFactors=False)
 
Inputs:
  • sdmfile: the ASDM (it is sufficient to export it with asdmExport -m)
  • spw: limit the display to a single spw: can either be an integer list, a single integer, or a comma-delimited string
  • showCentralFreq: if False, then show the first channel instead of the mean
  • showYIG: if True, then compute what the YIG frequency must have been
  • showEffective: if True, show the effective bandwidth and resolution of a channel
  • showChannelAverageSpws: if True, then also show those spws with a single channel
  • showWindowFactors: if True, then show ratio of effective bandwidth and effective resolution to the channel width (ICT-2542)

Examples:

CASA <2>: au.printLOsFromASDM('uid___A002_X1d9d21_X3c1', showCentralFreq=False)
spw BB# Chan RxId Ch1Frq(GHz) LO1(GHz)  LO2(GHz) Sampler  YIG(GHz) TFBoffset(MHz)
  0  0    4  WVR 184.550000
  1  1  128   07 355.740063  350.836250  8.896000 4.00 19.490903
  2  1    1   07 356.716625  350.836250  8.896000 4.00 19.490903
  3  2  128   07 356.507813  350.836250  9.663750 4.00 19.490903
  4  2    1   07 357.484375  350.836250  9.663750 4.00 19.490903
  5  3  128   07 346.792187  350.836250  8.036250 4.00 19.490903
  6  3    1   07 345.784375  350.836250  8.036250 4.00 19.490903
  7  4  128   07 345.182438  350.836250  9.646000 4.00 19.490903
  8  4    1   07 344.174625  350.836250  9.646000 4.00 19.490903
  9  1  128   07 344.386763  350.353075  9.958500 4.00 19.464060
 10  1    1   07 343.378950  350.353075  9.958500 4.00 19.464060
 11  2  128   07 346.324263  350.353075  8.021000 4.00 19.464060
 12  2    1   07 345.316450  350.353075  8.021000 4.00 19.464060
 13  3  128   07 354.402388  350.353075  8.041500 4.00 19.464060
 14  3    1   07 355.378950  350.353075  8.041500 4.00 19.464060
 15  4  128   07 356.402388  350.353075 10.041500 4.00 19.464060
 16  4    1   07 357.378950  350.353075 10.041500 4.00 19.464060
 17  1 3840   07 356.497936  350.836250  8.896000 4.00 19.490903 3000.000   +0.000
 18  1    1   07 356.732189  350.836250  8.896000 4.00 19.490903
 19  4 3840   07 357.734314  350.836250  9.663750 4.00 19.490903 3468.628 +468.628
 20  4    1   07 357.499939  350.836250  9.663750 4.00 19.490903
 21  3 3840   07 346.034314  350.836250  8.036250 4.00 19.490903 3000.000   -0.000
 22  3    1   07 345.799939  350.836250  8.036250 4.00 19.490903
 23  2 3840   07 343.955936  350.836250  9.646000 4.00 19.490903 3468.628 +468.628
 24  2    1   07 344.190189  350.836250  9.646000 4.00 19.490903

- ToddHunter - 2011-11-02

This topic: ALMA > TWikiUsers > ToddHunter > CasaExtensions > PrintLOsFromASDM
Topic revision: 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