Plotconfig: Difference between revisions
From CASA Guides
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
This page documents the '''plotconfig''' function of Python module [[Analysis Utilities|analysisUtils]]. | This page documents the '''plotconfig''' function of Python module [[Analysis Utilities|analysisUtils]]. | ||
This function will make a plot of pad locations for any standard telescope configuration known to CASA (not limited to a specific observed ms). See also [[obslist]]. | This function will make a plot of pad locations for any standard telescope configuration known to CASA (not limited to a specific observed ms). It also returns an array of the baseline lengths, sorted from shortest to longest. See also [[obslist]]. | ||
==Examples== | ==Examples== | ||
Line 29: | Line 29: | ||
<source lang="python"> | <source lang="python"> | ||
# In CASA | # In CASA | ||
au.plotconfig('alma','cycle0.compact',figfile=True) | CASA <3>: au.plotconfig('alma','cycle0.compact',figfile=True) | ||
</source> | </source> | ||
<code><pre> | <code><pre> | ||
Read 16 pads | Read 16 pads | ||
Wrote file = ALMA.cycle0.compact.png | Wrote file = ALMA.cycle0.compact.png | ||
Out[3]: | |||
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]) | |||
</pre></code> | </pre></code> | ||
[[File:ALMA.cycle0.compact.png]] | [[File:ALMA.cycle0.compact.png]] |
Revision as of 20:42, 1 March 2012
Return to Analysis Utilities
This page documents the plotconfig function of Python module analysisUtils.
This function will make a plot of pad locations for any standard telescope configuration known to CASA (not limited to a specific observed ms). It also returns an array of the baseline lengths, sorted from shortest to longest. See also obslist.
Examples
List the available telescopes and configurations.
# In CASA
au.plotconfig()
Telescope and configuration available to plot:
aca: i, ns, tp
alma: cycle0.compact, cycle0.extended, 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
Plot the antenna pad locations for the ALMA Cycle 0 compact configuration.
# In CASA
CASA <3>: au.plotconfig('alma','cycle0.compact',figfile=True)
Read 16 pads
Wrote file = ALMA.cycle0.compact.png
Out[3]:
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])