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(griddata, tgav, pscl, reof, fxmag, fxphase, infiles)

Arguments

griddata

An object returned from read.temperatures or concatGrids.

tgav

Global mean temperature for the grids in griddata.

pscl

Object returned from pscl_analyze.

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.