Description Usage Arguments Value
View source: R/generateTPfullgrids.R
This function takes in a trained emulator - a structure of class
fldgen
.
This structure contains everything the emulator has learned about the model,
and is used to generate new fields of residuals. Also taking in a list of
generated residual fields and a global average yield, a global gridded
mean field is constructed accoring to the input reconstruction_function.
The mean field and residual fields are added to return a list of different
realizations of full fields.
1 2 3 4 5 6 7 8 | generate.TP.fullgrids(
emulator,
residgrids,
tgav,
tvarunconvert_fcn = NULL,
pvarunconvert_fcn = exp,
reconstruction_function = pscl_apply
)
|
emulator |
A trained |
residgrids |
A list of new residual fields, each entry in the list is a new realization, a matrix that is Nyears x 2 * Ngrid; the first 1:Ngrid cols are the temperature residuals and columns (Ngrid + 1):(2*Ngrid) are the precipitation residuals. |
tgav |
A vector (or N x 1 matrix) of global mean temperatures, used to calculate the mean warming response field. |
tvarunconvert_fcn |
The function to undo any transformation done to the
input training data in |
pvarunconvert_fcn |
The function to undo any transformation done to the
input training data in |
reconstruction_function |
A function for constructing a mean field from trained pattern scaling result + a vector of global annual mean temperatures. |
A list of:
fullgrids = A list of new full fields, each entry in the list is a new realization, a matrix that is Nyears x 2 * Ngrid; the first 1:Ngrid cols are the temperature field and columns (Ngrid + 1):(2*Ngrid) are the precipitation field.
meanfieldT = the reconstructed, pattern scaled temperature mean field.
meanfieldP = the reconstructed, pattern scaled precipitation mean field.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.