pscl_apply: Generate a mean field from a pattern and an input temperature...

Description Usage Arguments Details

View source: R/meanfield.R

Description

Apply the w and b values to the input global mean temperatures. Thus, for each grid cell i,

T_i = w_i T_g + b_i

. The residuals are not added back to the result.

Usage

1
pscl_apply(pscl, tgav)

Arguments

pscl

A scaling pattern generated by pscl_analyze, or the pscl member of a fldgen structure.

tgav

A N x 1 matrix of global mean temperatures.

Details

The input temperatures should be in the form of a column vector; i.e., a matrix with dimension N x 1. The output will be a matrix of dimension N x ngrid, where each row is the flattened vector of grid cells for a single time slice.

For purposes of applying the pattern, any value of N will work; however, many of the other functions in this package expect a matrix with dimension ntime x ngrid, where ntime is the number of time slices in the ESM dataset originally used in the analysis. Therefore, for any output that is intended to be used in these other functions, the input temperatures should be of length ntime.


JGCRI/fieldgenr documentation built on July 22, 2020, 3:17 a.m.