readStationFromASDMKeyedByAntennaName

Return to directory of Todd's CASA extensions

Similar to readStationFromASDM and readStationsFromASDM, but returns a dictionary keyed by antenna name (instead of antenna ID or pad name).

Usage:

au.readStationFromASDMKeyedByAntennaName(sdmfile, station=None)
Inputs:
  • station: optional pad name, if not specified, all are returned

Example:

CASA <6>: au.readStationFromASDMKeyedByAntennaName('uid___A002_X91dc9f_Xb6')
  Out[6]: 
{'DA41': {'name': 'S301',
          'position': [2226262.569821, -5438426.431084, -2484134.962352]},
 'DA42': {'name': 'A006',
          'position': [2225116.935729, -5440036.884264, -2481682.221742]},
 'DA43': {'name': 'S306',
          'position': [2228432.364451, -5437814.573148, -2483417.377172]},
 'DA45': {'name': 'A127',
          'position': [2224466.988144, -5440836.130681, -2480521.741609]},
 'DA46': {'name': 'A058',
          'position': [2225037.245961, -5440017.160127, -2481797.396205]},
 'DA48': {'name': 'W207',
          'position': [2222792.36229, -5441825.678749, -2479693.114059]},
 'DA49': {'name': 'A029',
          'position': [2225041.624815, -5440095.630632, -2481621.893592]},
 'DA50': {'name': 'W204',
          'position': [2220842.703036, -5442388.884042, -2479890.344457]},
 'DA51': {'name': 'A082',
          'position': [2225285.150007, -5439946.267773, -2481715.882186]},
 'DA52': {'name': 'A035',
          'position': [2225072.739565, -5440052.968255, -2481686.557372]},
 'DA54': {'name': 'A122',
          'position': [2224146.551652, -5440725.603107, -2481002.249229]},
 'DA55': {'name': 'S309',
          'position': [2229977.087071, -5435351.96388, -2486828.351459]},
 'DA56': {'name': 'A131',
          'position': [2226198.665034, -5439129.442729, -2482768.627503]},
 'DA57': {'name': 'A076',
          'position': [2224945.979431, -5440033.674226, -2481849.708635]},
 'DA60': {'name': 'P404',
          'position': [2228202.008404, -5439783.084704, -2479180.203695]},
 'DA61': {'name': 'A075',
          'position': [2225069.805662, -5440142.46566, -2481496.256122]},
 'DA62': {'name': 'W206',
          'position': [2222534.852792, -5441895.914605, -2479739.85219]},
 'DA63': {'name': 'A132',
          'position': [2224984.111475, -5440962.670218, -2479796.897303]},
 'DA64': {'name': 'P402',
          'position': [2228789.554175, -5439346.456197, -2479519.983225]},
 'DV01': {'name': 'A072',
          'position': [2225196.812987, -5440052.193591, -2481569.080163]},
 'DV04': {'name': 'A078',
          'position': [2224904.325209, -5440167.27046, -2481596.620047]},
 'DV06': {'name': 'A084',
          'position': [2225024.680278, -5439956.792232, -2481955.554249]},
 'DV07': {'name': 'W201',
          'position': [2217989.707959, -5442734.829715, -2480996.994231]},
 'DV08': {'name': 'A133',
          'position': [2223829.463211, -5440048.49884, -2482716.985958]},
 'DV09': {'name': 'A124',
          'position': [2225712.013055, -5440363.076408, -2480420.324187]},
 'DV10': {'name': 'A024',
          'position': [2225034.126901, -5440086.492939, -2481648.440143]},
 'DV11': {'name': 'A121',
          'position': [2226160.419724, -5439676.319386, -2481419.061248]},
 'DV12': {'name': 'A113',
          'position': [2225759.164898, -5439620.718456, -2481972.151345]},
 'DV13': {'name': 'S303',
          'position': [2227317.6978, -5436651.740492, -2486447.661755]},
 'DV14': {'name': 'P405',
          'position': [2228954.012369, -5439466.740338, -2479129.618567]},
 'DV15': {'name': 'A118',
          'position': [2225666.598497, -5439439.557782, -2482514.802679]},
 'DV17': {'name': 'W210',
          'position': [2224518.563477, -5441787.979706, -2478421.035755]},
 'DV19': {'name': 'P410',
          'position': [2229251.900706, -5440451.370134, -2476680.641248]},
 'DV25': {'name': 'A005',
          'position': [2225117.507509, -5440026.937622, -2481703.370386]},
 'PM03': {'name': 'T701',
          'position': [2225043.380659, -5440142.748837, -2481517.201029]},
 'PM04': {'name': 'T703',
          'position': [2225102.085501, -5440096.07649, -2481565.772673]}}

-- ToddHunter - 2014-10-31
Topic revision: r1 - 2014-10-31, 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