readStationFromASDM

Return to directory of Todd's CASA extensions

This function uses the ASDM bindings from casapy-telcal and reads the Station position from the Station.xml file ( in the ASDM) and returns a dictionary of station positions if no station is specified. The dictionary format is: {0: {'name':'J503',position:[x,y,z]}, 1: etc.} If a station is specified, then it returns the name and location as a simple list: ['J503',[x,y,z]]. See also readStationsFromASDM and readStationFromASDMKeyedByAntennaName for an alternative dictionary format.

Usage:

au. readStationFromASDM(sdmfile, station=None)
  • sdmfile: name of the ASDM
  • station: a station integer ID (starting at zero)

Examples:

CASA <10>: au.readStationFromASDM('uid___A002_X8113a9_X370',0)
The ASDM bindings library is not available on this machine. Using minidom code instead.
  Out[10]: ('A085', [2225268.120274, -5440066.692904, -2481468.501714])

CASA <11>: au.readStationFromASDM('uid___A002_X8113a9_X370')
The ASDM bindings library is not available on this machine. Using minidom code instead.
  Out[11]:
{0: {'name': 'A085',
     'position': [2225268.120274, -5440066.692904, -2481468.501714]},
 1: {'name': 'T701',
     'position': [2225043.380906, -5440142.747762, -2481517.200407]},
 2: {'name': 'T703',
     'position': [2225102.084882, -5440096.073722, -2481565.771144]},
 3: {'name': 'WSTB1', 'position': [2225262.12, -5440307.3, -2480962.57]},
 4: {'name': 'WSTB2', 'position': [2225262.12, -5440307.5, -2480962.57]}}

-- ToddHunter - 2014-05-10

This topic: ALMA > TWikiUsers > ToddHunter > CasaExtensions > ReadStationFromASDM
Topic revision: 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