View source: R/prepareNewData.R
prepareNewData | R Documentation |
Prepare the prediction data according to the definition of the experiment
prepareNewData(newdata, data.structure)
newdata |
A grid containing the prediction data. |
data.structure |
A structure, as returned by |
A named list with the components required by the downscaling method in order to perform the predictions
J Bedia
downscaleR Wiki for preparing predictors for downscaling and seasonal forecasting.
Other downscaling.helpers:
predictor.nn.indices()
,
predictor.nn.values()
,
prepareData()
require(transformeR)
require(climate4R.datasets)
# Loading data
data("VALUE_Iberia_tas")
y <- VALUE_Iberia_tas
data("NCEP_Iberia_hus850", "NCEP_Iberia_psl", "NCEP_Iberia_ta850")
x <- makeMultiGrid(NCEP_Iberia_hus850, NCEP_Iberia_psl, NCEP_Iberia_ta850)
# Calculating EOFs
data <- prepareData(x = x, y = y, spatial.predictors = list(v.exp = 0.95))
# Projecting a new dataset to the calculated EOFs
newdata <- prepareNewData(x,data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.