Normally this code will be called internally, but it is available for external use, so that data created using the old interface can be converted.

fldgen_object_TP(
  griddataT,
  griddataP,
  tgav,
  meanfldT,
  meanfldP,
  tfuns,
  pfuns,
  reof,
  fxmag,
  fxphase,
  infiles
)

Arguments

griddataT

An object returned from read.temperatures or concatGrids.

griddataP

An object returned from read.temperatures or concatGrids.

tgav

Global mean temperature for the grids in griddata.

meanfldT

Object returned from whatever mean field analysis is done, currently pscl_analyze.

meanfldP

Object returned from whatever mean field analysis is done, currently pscl_analyze.

tfuns

The empirical cdf and empirical quantile functions for each grid cell, characterizing the distribution of residuals resulting from meanfldT.

pfuns

The empirical cdf and empirical quantile functions for each grid cell, characterizing the distribution of residuals resulting from meanfldP.

reof

Object returned from eof_analyze.

fxmag

The magnitude of the Fourier transform of the EOF projection coefficients. This should be a matrix [Ntime x NEOF]. If using psdest, note this is the square root of the power spectral density returned by that function.

fxphase

List of matrices [Ntime x NEOF] of phases of the Fourier transform. There should be one element in the list for each input ESM run.

infiles

Names of input files used to construct the data.

Details

If there is only a single ESM run in the input data set, then fxphase can be passed as a matrix of phases (instead of a list of matrices). It will be converted into a list automatically.