getWeatherFromASDM
Return to directory of Todd's CASA extensions
Reads the weather table in the ASDM and returns values. See also
getWeather and
getWeatherFromAIV.
Usage:
au.getWeatherFromASDM(sdmfile='', verbose=False, station='WSTB1')
Inputs:
- station: name of station, default = WSTB1
Returns three things:
- a list of value arrays 0=timeInterval(mjdsec), 1=pressure(mbar), 2=relHumidity(percent), 3=temperature(Kelvin), 4=windDirection(deg), 5=windSpeed(m/s), 6=windMax(m/s), 7=stationID
- a dictionary of the median values of 'temperature', 'windMax', 'humidity', 'pressure', 'windSpeed', 'windDirection'
- the weather station name
Example:
CASA <25>: au.getWeatherFromASDM('uid___A002_X99c183_X25b6')
Out[25]: "([[4928194711.024, 4928194738.024, 4928194752.024001, ...],
[556.457580566, 556.460693359, 556.467224121...],
[21.7413005829, 23.0116004944, 22.4382991791...],
[270.42539992331996, 270.46410002707995, 270.46739997864...],
[106.0, 119.0, 131.0, 114.0, ...],
[4.0, 3.6, 2.4, 4.1, 2.7, 3.8, ...],
[4.0, 3.6, 2.4, 4.1, ...],
35],
{'temperature': 270.29565002917997, 'windMax': 5.5, 'humidity': 24.504699707050001,
'pressure': 556.34020996100003, 'windSpeed': 4.0, 'windDirection': 139.04971215464874},
'WSTB1')"
--
ToddHunter - 2016-01-30