asdmspwmap

Return to directory of Todd's CASA extensions

Generate a list that maps the spw number that will be found in the measurement set to the corresponding value in the ASDM xml files. In general, the order will be [0,n+1,n+2,....] where n=number of antennas with WVR data. For example: [0,5,6,7...] if n=4 antennas, meaning that spw 1 in the ms = spw 5 in the ASDM xml files.

Usage:

au.asdmspwmap(asdm)

Example:

CASA <4>: au.asdmspwmap('uid___A002_X723a9d_X20e')
No transformation will be applied on this dataset.
  Out[4]:
[0,
 5,
 6,
 7,
 8,
 9,
 10,
 11,
 12,
 13,
 14,
 15,
 16,
 17,
 18,
 19,
 20,
 21,
 22,
 23,
 24,
 25,
 26,
 27,
 28,
 29,
 30,
 31,
 32,
 33,
 34,
 35,
 36]

Here is the corresponding listobs output:
  SpwID  Name                           #Chans   Frame   Ch0(MHz)  ChanWid(kHz)  TotBW(kHz) BBC Num  Corrs
  0      WVR#NOMINAL                         4   TOPO  184550.000   1500000.000   7500000.0       0  XX
  1      ALMA_RB_06#BB_1#SW-01#FULL_RES    124   TOPO  215210.938    -15625.000   1937500.0       1  XX  YY
  2      ALMA_RB_06#BB_1#SW-01#CH_AVG        1   TOPO  214242.188   1937500.000   1937500.0       1  XX  YY
  3      ALMA_RB_06#BB_2#SW-01#FULL_RES    124   TOPO  217210.938    -15625.000   1937500.0       2  XX  YY
  4      ALMA_RB_06#BB_2#SW-01#CH_AVG        1   TOPO  216242.188   1937500.000   1937500.0       2  XX  YY
  5      ALMA_RB_06#BB_3#SW-01#FULL_RES    124   TOPO  229289.063     15625.000   1937500.0       3  XX  YY
  6      ALMA_RB_06#BB_3#SW-01#CH_AVG        1   TOPO  230242.188   1937500.000   1937500.0       3  XX  YY
  7      ALMA_RB_06#BB_4#SW-01#FULL_RES    124   TOPO  231289.063     15625.000   1937500.0       4  XX  YY
  8      ALMA_RB_06#BB_4#SW-01#CH_AVG        1   TOPO  232242.188   1937500.000   1937500.0       4  XX  YY
  9      ALMA_RB_06#BB_1#SW-01#FULL_RES    128   TOPO  215242.188    -15625.000   2000000.0       1  XX  YY
  10     ALMA_RB_06#BB_1#SW-01#CH_AVG        1   TOPO  214226.562   1781250.000   1781250.0       1  XX  YY
  11     ALMA_RB_06#BB_2#SW-01#FULL_RES    128   TOPO  217242.188    -15625.000   2000000.0       2  XX  YY
  12     ALMA_RB_06#BB_2#SW-01#CH_AVG        1   TOPO  216226.562   1781250.000   1781250.0       2  XX  YY
  13     ALMA_RB_06#BB_3#SW-01#FULL_RES    128   TOPO  229257.813     15625.000   2000000.0       3  XX  YY
  14     ALMA_RB_06#BB_3#SW-01#CH_AVG        1   TOPO  230226.563   1781250.000   1781250.0       3  XX  YY
  15     ALMA_RB_06#BB_4#SW-01#FULL_RES    128   TOPO  231257.813     15625.000   2000000.0       4  XX  YY
  16     ALMA_RB_06#BB_4#SW-01#CH_AVG        1   TOPO  232226.563   1781250.000   1781250.0       4  XX  YY
  17     ALMA_RB_07#BB_1#SW-01#FULL_RES    128   TOPO  302811.604     15625.000   2000000.0       1  XX  YY
  18     ALMA_RB_07#BB_1#SW-01#CH_AVG        1   TOPO  303780.354   1781250.000   1781250.0       1  XX  YY
  19     ALMA_RB_07#BB_2#SW-01#FULL_RES    128   TOPO  301059.138     15625.000   2000000.0       2  XX  YY
  20     ALMA_RB_07#BB_2#SW-01#CH_AVG        1   TOPO  302027.888   1781250.000   1781250.0       2  XX  YY
  21     ALMA_RB_07#BB_3#SW-01#FULL_RES    128   TOPO  293001.513    -15625.000   2000000.0       3  XX  YY
  22     ALMA_RB_07#BB_3#SW-01#CH_AVG        1   TOPO  291985.888   1781250.000   1781250.0       3  XX  YY
  23     ALMA_RB_07#BB_4#SW-01#FULL_RES    128   TOPO  291308.954    -15625.000   2000000.0       4  XX  YY
  24     ALMA_RB_07#BB_4#SW-01#CH_AVG        1   TOPO  290293.329   1781250.000   1781250.0       4  XX  YY
  25     ALMA_RB_07#BB_1#SW-01#FULL_RES   4096   TOPO  303360.554       244.141   1000000.0       1  XX  YY
  26     ALMA_RB_07#BB_1#SW-01#CH_AVG        1   TOPO  303860.310   1000000.000   1000000.0       1  XX  YY
  27     ALMA_RB_07#BB_2#SW-01#FULL_RES   4096   TOPO  301268.244       244.141   1000000.0       2  XX  YY
  28     ALMA_RB_07#BB_2#SW-01#CH_AVG        1   TOPO  301768.000   1000000.000   1000000.0       2  XX  YY
  29     ALMA_RB_07#BB_3#SW-01#FULL_RES   4096   TOPO  292839.281      -244.141   1000000.0       3  XX  YY
  30     ALMA_RB_07#BB_3#SW-01#CH_AVG        1   TOPO  292339.281   1000000.000   1000000.0       3  XX  YY
  31     ALMA_RB_07#BB_4#SW-01#FULL_RES   4096   TOPO  290816.644      -244.141   1000000.0       4  XX  YY
  32     ALMA_RB_07#BB_4#SW-01#CH_AVG        1   TOPO  290316.644   1000000.000   1000000.0       4  XX  YY

-- ToddHunter - 2013-11-21

This topic: ALMA > TWikiUsers > ToddHunter > CasaExtensions > Asdmspwmap
Topic revision: 2013-11-21, 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