getPadPositions

Return to directory of Todd's CASA extensions

Reads the pad positions in geocentric XYZ coordinates from an ms, (excluding the weather stations unless requested). Returns a dictionary keyed by pad name, with value = an array of its [X,Y,Z] position (in meters).

Usage:

au. getPadPositions(vis, includeWeatherStations=False)

Example:

CASA <17>: au.getPadPositions('uid___A002_X99c183_X25b6.ms')
  Out[17]:
{'A002': array([ 2225083.144772, -5440055.698561, -2481671.316364]),
 'A003': array([ 2225081.032575, -5440064.007625, -2481655.10594 ]),
 'A005': array([ 2225117.509271, -5440026.938761, -2481703.372874]),
 'A006': array([ 2225116.935729, -5440036.884264, -2481682.221742]),
 'A010': array([ 2225088.255621, -5440077.293807, -2481619.724108]),
 'A011': array([ 2225130.368299, -5440025.146006, -2481695.420609]),
 'A013': array([ 2225101.23474 , -5440051.255661, -2481664.911534]),
 'A014': array([ 2225119.69589 , -5440055.58979 , -2481637.995913]),
 'A015': array([ 2225116.51403 , -5440062.822272, -2481625.085507]),
 'A016': array([ 2225091.353391, -5440084.140773, -2481601.582982]),
 'A017': array([ 2225096.73044 , -5440060.572352, -2481648.626318]),
 'A018': array([ 2225058.688537, -5440058.795851, -2481686.373243]),
 'A019': array([ 2225052.499121, -5440067.567939, -2481672.787955]),
 'A021': array([ 2225061.37378 , -5440071.980224, -2481655.270945]),
 'A024': array([ 2225034.126901, -5440086.492939, -2481648.440143]),
 'A026': array([ 2225015.66085 , -5440074.137173, -2481692.31949 ]),
 'A027': array([ 2225007.852886, -5440071.51881 , -2481704.92527 ]),
 'A029': array([ 2225041.624815, -5440095.630632, -2481621.893592]),
 'A030': array([ 2225037.574361, -5440079.054336, -2481661.065172]),
 'A031': array([ 2225012.857382, -5440091.074305, -2481657.916559]),
 'A034': array([ 2225026.976621, -5440075.450677, -2481679.355603]),
 'A035': array([ 2225072.739565, -5440052.968255, -2481686.557372]),
 'A036': array([ 2225079.609834, -5440041.620446, -2481705.127493]),
 'A037': array([ 2225046.288189, -5440055.117191, -2481705.416108]),
 'A038': array([ 2225016.696843, -5440059.815211, -2481722.550643]),
 'A040': array([ 2225049.99823 , -5440040.413114, -2481734.132505]),
 'A044': array([ 2225015.053978, -5440054.627096, -2481736.827178]),
 'A046': array([ 2225057.587595, -5440043.951538, -2481719.683427]),
 'A058': array([ 2225037.246034, -5440017.160177, -2481797.396253]),
 'A060': array([ 2225071.983245, -5439996.293021, -2481812.654088]),
 'A062': array([ 2225008.370301, -5440036.902279, -2481781.539373]),
 'A068': array([ 2224978.483009, -5440124.857291, -2481618.150713]),
 'A070': array([ 2225190.832159, -5439987.367096, -2481719.621863]),
 'A075': array([ 2225069.805662, -5440142.46566 , -2481496.256122]),
 'A137': array([ 2225133.189308, -5440097.511857, -2481533.039325])}
-- ToddHunter - 2016-02-09
Topic revision: r1 - 2016-02-09, 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