Learn R Programming

thunder (version 1.1.4)

get_sounding: Download rawinsonde measurement

Description

Download rawinsonde measurement from sounding database of the University of Wyoming in a form convenient to use with thundeR package. In case of problems with downloading the chosen dataset the url is checked 5 times in 5-second intervals.

Usage

get_sounding(wmo_id, yy, mm, dd, hh, metadata = FALSE)

Value

Returns two lists with values described at: weather.uwyo.edu ; The first list contains:

  1. pressure - pressure [hPa]

  2. altitude - altitude [meters]

  3. temp - temperature [degree Celsius]

  4. dpt - dew point temperature [degree Celsius]

  5. wd - wind direction [azimuth in degrees]

  6. ws - wind speed [knots]

If metadata = TRUE then retrieved data is wrapped into a second list containing available metadata

Arguments

wmo_id

international WMO station code (e.g. 11035 for Vienna)

yy

year - single number (e.g. 2010)

mm

month - single number (e.g. 5)

dd

day - single number (e.g. 23)

hh

hour - single number (e.g. 0)

metadata

- logical, whether to return metadata of downloaded sounding; default FALSE

Examples

Run this code
# \donttest{
# download rawinsonde profile from Vienna (WMO ID: 11035) for 23 August 2011 1200 UTC:

  profile = get_sounding(wmo_id = 11035, 
                         yy = 2011,
                         mm = 8, 
                         dd = 23, 
                         hh = 12)
  head(profile)
  
# }

Run the code above in your browser using DataLab