data(ensBMAtest)
ensMemNames <- c("gfs","cmcg","eta","gasp","jma","ngps","tcwb","ukmo")
obs <- paste("T2","obs", sep = ".")
ens <- paste("T2", ensMemNames, sep = ".")
tempTestData <- ensembleData( forecasts = ensBMAtest[,ens],
dates = ensBMAtest[,"vdate"],
observations = ensBMAtest[,obs],
station = ensBMAtest[,"station"],
forecastHour = 48,
initializationTime = "00")
if (FALSE) # R check
tempTestFit <- ensembleBMAnormal( tempTestData, trainingDays = 30)
tempTestForc <- quantileForecast( tempTestFit, tempTestData)
if (FALSE) # R check
data(srft)
labels <- c("CMCG","ETA","GASP","GFS","JMA","NGPS","TCWB","UKMO")
srftData <- ensembleData( forecasts = srft[ ,labels],
dates = srft$date,
observations = srft$obs,
latitude = srft$lat,
longitude = srft$lon,
forecastHour = 48,
initializationTime = "00")
srftFit <- ensembleBMAnormal(srftData, date = "2004013100",
trainingDays = 25)
data(srftGrid)
srftGridData <- ensembleData(forecasts = srftGrid[ ,labels],
latitude = srftGrid$lat,
longitude = srftGrid$lon,
forecastHour = 48,
initializationTime = "00")
srftGridForc <- quantileForecast( srftFit, srftGridData,
date = "2004013100")
Run the code above in your browser using DataLab