Description Usage Format Source References Examples
00UTC temperature observations and corresponding 24-hour reforecast ensemble means from the Global Ensemble Forecast System (GEFS, Hamill et al. 2013) for SYNOP station Innsbruck Airport (11120; 47.260, 11.357) from 2011-01-01 to 2015-12-31.
1 | data("IbkTemperature")
|
A data frame containing 1824 daily observations/forecasts for 42 variables.
The first column (temp
) contains temperature observations at
00UTC (coordinated universal time) in degree Celsius, columns 2–37 are
24-hour lead time GEFS reforecast ensemble means for different variables (see below).
Columns 38–42 are deterministic time trend/season patterns.
Observed temperature at Innsbruck Airport.
Total accumulated precipitation.
Temperature at 2 meters.
U-component of wind at 10 meters.
V-component of wind at 10 meters.
U-component of wind at 80 meters.
U-component of wind at 80 meters.
Convective available potential energy.
Convective inhibition.
Surface downward long-wave radiation flux.
Surface downward short-wave radiation flux.
Surface upward long-wave radiation flux.
Surface upward short-wave radiation flux.
Ground heat flux.
Surface latent heat net flux.
Surface sensible heat net flux.
Mean sea level pressure.
Surface pressure.
Precipitable water.
Volumetric soil moisture content.
Specific humidity at 2 meters.
Total cloud cover.
Total column-integrated condensate.
Skin temperature.
Maximum temperature.
Minimum temperature.
Soil temperature (0-10 cm below surface).
Upward long-wave radiation flux.
Water runoff.
Water equivalent of accumulated snow depth.
Wind mixing energy.
Vertical velocity at 850 hPa surface.
Temperature on 2 PVU surface.
Pressure on 2 PVU surface.
U-component of wind on 2 PVU surface.
U-component of wind on 2 PVU surface.
Potential vorticity on 320 K isentrope.
Time in years.
Sine and cosine component of annual harmonic pattern.
Sine and cosine component of bi-annual harmonic pattern.
Observations: http://www.ogimet.com/synops.phtml.en
Reforecasts: http://www.esrl.noaa.gov/psd/forecasts/reforecast2/
Hamill TM, Bates GT, Whitaker JS, Murray DR, Fiorino M, Galarneau Jr. TJ, Zhu Y, Lapenta W (2013). NOAA's Second-Generation Global Medium-Range Ensemble Reforecast Data Set. Bulletin of the American Meteorological Society, 94(10), 1553–1565. doi: 10.1175/BAMS-D-12-00014.1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | ## load data and omit only a couple of observations with some missing values
data("IbkTemperature", package = "lmSubsets")
IbkTemperature <- na.omit(IbkTemperature)
## fit a simple climatological model for the temperature
## with a linear trend and annual/bi-annual harmonic seasonal pattern
m0 <- lm(temp ~ time + sin + cos + sin2 + cos2, data = IbkTemperature)
## fit a simple MOS with 2-meter temperature forecast in addition
## to the climatological model
m1 <- lm(temp ~ t2m + time + sin + cos + sin2 + cos2, data = IbkTemperature)
## graphical comparison and MOS summary
plot(temp ~ time, data = IbkTemperature, type = "l", col = "darkgray")
lines(fitted(m1) ~ time, data = IbkTemperature, col = "darkred")
lines(fitted(m0) ~ time, data = IbkTemperature, lwd = 2)
summary(m1)
## best subset selection of remaining variables for the MOS
## (i.e., forcing the regressors of m1 into the model)
ms2 <- lmSubsets(temp ~ ., data = IbkTemperature,
include = c("t2m", "time", "sin", "cos", "sin2", "cos2"))
plot(summary(ms2))
image(ms2, size = 8:20)
## -> Note that soil temperature and maximum temperature are selected
## in addition to the 2-meter temperature
## best subset selection of all variables
ms3 <- lmSubsets(temp ~ ., data = IbkTemperature)
plot(summary(ms3))
image(ms3, size = 2:20)
## -> Note that 2-meter temperature is not selected into the best
## BIC model but soil-temperature (and maximum temperature) are used instead
## refit the best BIC subset selections
m2 <- refit(lmSelect(ms2, penalty = "BIC"))
m3 <- refit(lmSelect(ms3, penalty = "BIC"))
## compare BIC
BIC(m0, m1, m2, m3)
## compare RMSE
sqrt(sapply(list(m0, m1, m2, m3), deviance)/nrow(IbkTemperature))
## compare coefficients
cf0 <- coef(m0)
cf1 <- coef(m1)
cf2 <- coef(m2)
cf3 <- coef(m3)
names(cf2) <- gsub("^x", "", names(coef(m2)))
names(cf3) <- gsub("^x", "", names(coef(m3)))
nam <- unique(c(names(cf0), names(cf1), names(cf2), names(cf3)))
cf <- matrix(NA, nrow = length(nam), ncol = 4,
dimnames = list(nam, c("m0", "m1", "m2", "m3")))
cf[names(cf0), 1] <- cf0
cf[names(cf1), 2] <- cf1
cf[names(cf2), 3] <- cf2
cf[names(cf3), 4] <- cf3
print(round(cf, digits = 3), na.print = "")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.