Using plotconfig

Return to directory of Todd's CASA extensions

There is also a casaguide page for this function!

This function is distributed within the analysisUtils python package which provides extensions for casa.It will make a plot of pad locations for any telescope/configuration known to casa. Generally, these are the configuration files that live in the directory: /usr/lib64/casapy/data/alma/simmos/. The command-line options and an example is given below.The return value is an array containing the baseline lengths, sorted by increasing length. See also obslist and plotantsFromASDM. It also prints the maximum height differential between pads. More information on ALMA pads and baselines can be found at this page.

Usage:

au.plotconfig(telescope=, config=, figfile=, list=False, limits=None, gridlines=True, listconfig=False, 
        cofa=[], title='', repotable='', antennaSizePercent=0.5, units='m', tickSpacing=None, 
        fontsize=12, showPadNames=False, extraStationLocations=[], extraStationNames=[])
  • telescope: name of the telescope (see below), or 'file'
  • config: name of the configuration for the specified telescope, or any user-supplied .cfg file if telescope='file'
  • figfile: a specific filename to give to the png (or True for automatic name generation)
  • gridlines: optional Boolean parameter to show dotted grid lines on major tick marks
  • limits: optional parameter for plot range: [x0,x1,y0,y1]
  • list: optional Boolean parameter to print the list of baseline lengths
  • listconfig: optional Boolean parameter to print the .cfg file
  • cofa: center-of-array coordinates [x,y,z]; if [], then use the value in CASA
  • title: title for plot (default is "telescope config")
  • repotable: specify a non-default location for the repository table (../data/alma/simmos)
  • antennaSizePercent: size of antennas to draw in large configurations
  • units: 'm' or 'km'
  • tickSpacing: change the X & Y axis major tick spacing (in specified units)
  • fontsize: for axis labels and tick labels
  • extraStationLocations: list of additional stations to plot (in geocentric ITRF X,Y,Z coords)
  • extraStationNames: list of additional station names to plot

Examples:

CASA : import analysisUtils as au
CASA : au.plotconfig()
Telescope and configuration available to plot:
aca: i, ns, tp
alma: cycle0.compact, cycle0.extended, cycle1_1..6, 1..28
carma: a, b, c, d, e
meerkat
pdbi: a, b, c, d
sma: subcompact, compact, compact.n, extended, vextended
vla: a, bna, b, cnb, c, dnc, d
WSRT
file: specify any filename as config='myfilename'

CASA : au.plotconfig('alma','cycle0.compact',figfile=True)
Read 16 pads
Wrote file = ALMA.cycle0.compact.png
min/median/rms/max = 18.35 / 59.72 / 66.23 / 126.21 m
  OUT[9]:
array([  18.34928114,   18.59922814,   18.67225341,   19.68871438,
         20.7597779 ,   21.20105286,   21.3329793 ,   21.72915379,
         22.0800591 ,   22.59459018,   22.78237144,   25.78846509,
         25.83201484,   27.46895957,   27.49794209,   29.15634497,
         29.51343179,   31.55829422,   31.62250752,   32.54785378,
         34.38181744,   35.16912492,   35.18143753,   35.82266106,
         36.13044471,   36.45664452,   37.51364775,   38.35224408,
         38.35254654,   39.69908198,   40.3565153 ,   40.42755518,
         41.67060747,   41.96129664,   42.70404032,   44.19920722,
         44.904219  ,   44.98801461,   45.55421129,   45.93669031,
         46.3172296 ,   49.19301973,   49.30952918,   49.48707485,
         49.6219985 ,   49.69345204,   50.21704346,   51.29964177,
         52.43045363,   53.36047729,   53.43057901,   54.77903629,
         55.02455692,   55.24620569,   55.64613159,   55.95932051,
         58.43846541,   58.87265975,   59.35451767,   59.38838186,
         60.04523739,   61.13475674,   61.20365903,   61.79890065,
         61.99068325,   62.23888045,   62.24118429,   63.29582646,
         63.72437196,   63.80145741,   64.07662404,   64.59870677,
         65.21122832,   66.19442183,   67.23575586,   67.44667197,
         68.35948186,   69.82434388,   70.28085447,   70.35046477,
         70.4119276 ,   71.27848096,   71.58639724,   72.73992797,
         73.02277569,   74.6357243 ,   74.65195369,   75.88656385,
         77.55790771,   77.66319884,   77.94134408,   78.66300731,
         78.99645676,   79.3718099 ,   79.51404976,   81.32890711,
         81.89215932,   84.58133363,   85.51914888,   85.71695764,
         86.23846096,   89.81169974,   89.90704378,   91.43517893,
         92.5529028 ,   92.69516764,   96.68869426,   97.2890155 ,
         99.39936863,   99.74621451,  102.75273748,  103.30270508,
        106.0247318 ,  106.44602039,  113.42238358,  118.82496947,
        119.32132193,  123.42990694,  124.75264467,  126.21222105])

ALMA.cycle0.compact.png
CASA : au.plotconfig('file','ce.dat')
Read 16 pads
COFA in long/lat/height =  -67.754929 -23.022886 5056.8
COFA in x/y/z =  2226281.38223 -5443092.63454 -2482300.0534
To save a plot, re-run with either:
  plotconfig('ALMA','ce.dat',figfile=True) to produce the automatic name=ALMA.ce.dat.png
  plotconfig('ALMA','ce.dat',figfile='myname.png')
min/median/rms/max = 21.21 / 95.59 / 119.78 / 276.15 m
  Out[2]:
array([  21.21192892,   24.20249233,   25.02072942,   27.75892405,
         29.23762685,   29.48516633,   29.56933694,   30.34328845,
         30.85598967,   32.48781057,   37.15820452,   38.22043302,
         42.15377273,   43.01123925,   44.59291738,   45.17357226,
         48.18563804,   50.77687567,   51.22668687,   51.35264939,
         51.41688534,   53.54902851,   54.16381102,   55.67425675,
         56.99650012,   58.5177331 ,   59.5873862 ,   60.94316896,
         61.09337541,   61.72341909,   63.08301318,   63.5267975 ,
         64.10452237,   64.80238138,   68.80339164,   70.84097579,
         72.50104898,   73.50729326,   75.80898269,   75.93241674,
         76.04793795,   76.62847917,   77.5339236 ,   78.06172428,
         79.69084284,   80.32449713,   80.41683919,   81.70265318,
         81.99930477,   82.64786703,   84.45422887,   84.88124019,
         86.31397745,   86.52249822,   89.21222365,   90.46003718,
         93.93222121,   94.15703425,   94.37574072,   95.19375993,
         95.97960124,   96.13713216,   98.84460718,   99.92576681,
        102.29715529,  103.54388719,  106.3454312 ,  107.02172797,
        107.13777948,  107.92806145,  109.77671584,  110.61654866,
        115.20234921,  115.43172077,  117.83238426,  119.31881378,
        121.08087409,  121.81240571,  122.2439781 ,  123.21672178,
        124.82259033,  125.03014163,  125.50856368,  125.88727521,
        126.85250362,  127.90475348,  128.30508917,  129.63974628,
        147.07640736,  147.63056654,  147.85063443,  149.74531907,
        150.31156015,  151.27170558,  151.59258758,  151.91675766,
        154.94223957,  155.54272205,  156.00925163,  156.04520233,
        164.79981476,  169.08898959,  169.57338393,  169.84542578,
        172.4707894 ,  173.60633616,  174.62643411,  174.72106006,
        175.16719889,  175.93414567,  197.81898648,  200.27805301,
        201.72463518,  202.52530427,  205.69382008,  220.20397704,
        230.52288637,  262.98811802,  269.30460958,  276.1475478 ])

-- ToddHunter - 2011-10-07

Return to directory of Todd's CASA extensions

Topic revision: r14 - 2014-09-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