getWeatherStationNamesFromASDM
Return to directory of Todd's CASA extensions
Gets the names of the weather stations in an ASDM. See also
getWeatherStationNames.
Usage:
au.getWeatherStationNamesFromASDM(asdm, prefix=['WSTB', 'METEO', 'OSF'], returnNearestAntennas=False))
Inputs:
- prefix: restrict the stations to those whose names begin with one of these strings
- returnNearestAntennas: if True, then return a dictionary keyed by station name, including keys: 'distance', 'antenna' and 'pad'.
Returns:
- a dictionary keyed by station ID
Examples:
CASA <4>: au.getWeatherStationNamesFromASDM('uid___A002_Xa9f45b_X20aa')
The ASDM bindings library is not available on this machine. Using minidom code instead.
Out[4]:
{27: 'METEO130',
28: 'METEO201',
29: 'METEO309',
30: 'METEO410',
31: 'WSTB1',
32: 'WSTB2'}
CASA <11>: au.getWeatherStationNamesFromASDM('uid___A002_Xa9f45b_X20aa',returnNearestAntennas=True)
Out[11]:
{'METEO130': {'antenna': 'DA56', 'distance': 727.5, 'pad': 'A117'},
'METEO201': {'antenna': 'DV03', 'distance': 2719.5, 'pad': 'A103'},
'METEO309': {'antenna': 'DV05', 'distance': 3288.3, 'pad': 'A118'},
'METEO410': {'antenna': 'DA53', 'distance': 2637.2, 'pad': 'A114'},
'WSTB1': {'antenna': 'DA47', 'distance': 324.7, 'pad': 'A101'},
'WSTB2': {'antenna': 'DA47', 'distance': 324.7, 'pad': 'A101'}}
--
ToddHunter - 2015-09-06