GetBaselineLengths: Difference between revisions

From CASA Guides
Jump to navigationJump to search
(Created page with "'''Return to Analysis Utilities''' This page documents the getBaselineLengths function of Python module analysisUtils. This function returns a list o...")
 
No edit summary
 
Line 7: Line 7:
'''Usage:'''
'''Usage:'''


<tt>getBaselineLengths(msFile, sort=True)</tt>
<tt>au.getBaselineLengths(msFile, sort=True)</tt>


'''sort=True''' will return the list sorted by baseline length.
'''sort=True''' will return the list sorted by baseline length.
Line 16: Line 16:
<source lang="Python">
<source lang="Python">
# In CASA
# In CASA
getBaselineLengths(msFile, sort=True)
au.getBaselineLengths(msFile, sort=True)
</source>
</source>
<code><pre>
<code><pre>

Latest revision as of 15:50, 16 December 2011

Return to Analysis Utilities

This page documents the getBaselineLengths function of Python module analysisUtils.

This function returns a list of tuples, where the first element of each tuple is the baseline string (comprised of the two antenna names) and the second element is the baseline length in meters.

Usage:

au.getBaselineLengths(msFile, sort=True)

sort=True will return the list sorted by baseline length. sort=False will return the list sorted by antenna names

Examples

# In CASA
au.getBaselineLengths(msFile, sort=True)
[('DA41-PM02', 18.337612713656771),
 ('DV04-PM02', 18.583233745715738),
 ('DV06-PM02', 18.653676029578815),
 ('DV03-PM02', 19.698353530945823),
 ('DV04-DV06', 20.761556234169969),
 ('DV03-DV04', 22.080963891071463),
 ('DV13-PM01', 25.763833692384477),
 ('DA41-DV03', 25.825064654224512),
 ('DV14-PM03', 27.479106530215589),
 ('DV13-PM03', 27.516309082315669),
 ('DV13-DV14', 29.521040224100151),
 ('DV06-PM01', 32.558750118943408),
 ('DV07-PM03', 33.467507873066985),
 ('DA41-DV06', 34.3457879517441),
 ('DV07-PM01', 34.514631690366329),
 ('DV06-DV13', 35.165649425704245),
 ('DV03-DV06', 35.825367104033518),
 ('DA41-DV04', 36.102599464977068),
 ('PM01-PM03', 38.353356235346332),
 ('DA42-DV06', 39.719572737209951),
 ('DA42-PM01', 40.367175823491202),
 ('DA42-DV04', 41.682561738543832),
 ('DV04-DV12', 44.904414554665131),
 ('DV13-PM02', 45.551116985899775),
 ('DV07-DV13', 46.574819406330519),
 ('DA41-DV13', 49.302030859234847),
 ('DV03-DV12', 49.611883523775496),
 ('PM01-PM02', 50.215532691733138),
 ('DV04-PM01', 51.307765715476258),
 ('DV14-PM01', 53.345475448981141),
 ('DA42-PM02', 54.77439425768457),
 ('DV04-DV13', 55.635589934307077),
 ('DA42-DV12', 60.053807894943866),
 ('DV07-DV14', 60.36310242463076),
 ('DV06-PM03', 61.146830080830938),
 ('DV12-PM02', 61.191473350622097),
 ('DA41-PM01', 61.782232766208175),
 ('DA42-DV13', 61.976187860091471),
 ('DV06-DV14', 62.219005102787023),
 ('DA41-DV14', 63.283501204190578),
 ('DA42-DV03', 63.736775128970393),
 ('DV06-DV12', 64.603298882853835),
 ('DV03-DV13', 65.217294688509128),
 ('DA42-DV07', 65.466317067475458),
 ('DV06-DV07', 66.957842136514586),
 ('DV14-PM02', 67.228378718819343),
 ('DV03-PM01', 68.373464485639104),
 ('DA41-DA42', 72.722969794694535),
 ('PM02-PM03', 73.038774758363857),
 ('DA41-DV12', 74.629598600076548),
 ('DA41-PM03', 75.89397422116906),
 ('DA42-PM03', 78.67386151209412),
 ('DV04-DV14', 81.314636697124499),
 ('DV04-PM03', 81.906178400721217),
 ('DV07-PM02', 84.007310270107467),
 ('DV03-DV14', 85.515815117294068),
 ('DV04-DV07', 85.714315317831534),
 ('DV12-PM01', 89.821099625868669),
 ('DA42-DV14', 91.429197820493869),
 ('DV03-PM03', 92.720248713132023),
 ('DA41-DV07', 93.299968653862976),
 ('DA41-PM04', 97.225190744152414),
 ('DV12-DV13', 99.733929279723483),
 ('DV03-DV07', 102.67639347178388),
 ('DV03-PM04', 108.80211275190518),
 ('PM02-PM04', 114.58193988471984),
 ('DV07-DV12', 121.89867767223357),
 ('DV12-PM03', 124.76597780600835),
 ('DV12-DV14', 126.19820531067855),
 ('DV04-PM04', 129.0972563416515),
 ('DV14-PM04', 129.87173711607181),
 ('DV06-PM04', 131.56215446018734),
 ('DV13-PM04', 135.72630680331241),
 ('DV12-PM04', 150.46385227002685),
 ('PM03-PM04', 154.80549653556409),
 ('PM01-PM04', 155.85883717079687),
 ('DA42-PM04', 169.28166786095093),
 ('DV07-PM04', 182.17082448296671)]