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.
get_sounding(wmo_id, yy, mm, dd, hh, metadata = FALSE)
http://weather.uwyo.edu/upperair/sounding.html
Returns two lists with values described at: weather.uwyo.edu ; The first list contains:
pressure - pressure [hPa]
altitude - altitude [meters]
temp - temperature [degree Celsius]
dpt - dew point temperature [degree Celsius]
wd - wind direction [azimuth in degrees]
ws - wind speed [knots]
If metadata = TRUE then retrieved data is wrapped into a second list containing available metadata
# \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)
#> pressure altitude temp dpt wd ws
#> 2 991 200 32.8 23.8 110 8
#> 3 979 309 31.5 23.1 135 10
#> 4 925 818 25.6 19.6 155 10
#> 5 909 971 24.1 18.9 165 10
#> 6 896 1098 22.8 18.4 181 11
#> 7 870 1356 25.2 6.2 215 14
# }