pyrtlib.apiwebservices.WyomingUpperAir.request_data#

classmethod WyomingUpperAir.request_data(time: datetime, site_id: Union[str, int], **kwargs) DataFrame#

Retrieve upper air observations from the Wyoming archive.

Parameters:
  • time (datetime.datetime) – The date and time of the desired observation.

  • site_id (Union[str, int]) – The three letter ICAO identifier of the station for which data should be downloaded.

Returns:

A dataframe containing the data

Return type:

pandas.DataFrame

Note

Variables name and units information are reported within the attribute units of the returned dataframe (see example below).

Example

>>> from pyrtlib.apiwebservices import WyomingUpperAir
>>> from datetime import datetime
>>> date = datetime(2022, 6, 22, 12)
>>> station = 'LIRE'
>>> df = WyomingUpperAir.request_data(date, station)
>>> df.attrs['units']
{'pressure': 'hPa',
 'height': 'meter',
 'temperature': 'degC',
 'dewpoint': 'degC',
 'rh': '%',
 'mixr': 'g/kg',
 'station': None,
 'station_number': None,
 'time': None,
 'latitude': 'degrees',
 'longitude': 'degrees',
 'elevation': 'meter'}

Examples using pyrtlib.apiwebservices.WyomingUpperAir.request_data#

Performing Upwelling Brightness Temperature calculation using Wyoming Upper Air Observations.

Performing Upwelling Brightness Temperature calculation using Wyoming Upper Air Observations.