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)
## equivalent to
## tempTestFit <- ensembleBMA( tempTestData, trainingDays = 30,
## model = "normal")
# for quick run only; use more training days for forecasting
tempTestFit <- ensembleBMAnormal( tempTestData[1:20,], trainingDays = 8)
Run the code above in your browser using DataLab