NCL Home > Documentation > Functions > Empirical orthogonal functions


Calculates the time series of the amplitudes associated with each eigenvalue in an EOF and retains metadata.


load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"  ; This library is automatically loaded
                                                             ; from NCL V6.2.0 onward.
                                                             ; No need for user to explicitly load.

	function eofunc_ts_Wrap (
		data    : numeric,  
		evec    : numeric,  
		optETS  : logical   

	return_val  :  numeric



A multi-dimensional array in which the rightmost dimension is the number of observations. Generally, this is the time dimension.

If your rightmost dimension is not time, then see eofunc_ts_n_Wrap.


A multi-dimensional array containing the EOFs calculated using eofunc.


A logical variable to which various optional arguments may be assigned as attributes. These optional arguments alter the default behavior of the function. Must be set to True prior to setting the attributes which are assigned using the @ operator:

  • jopt - integer (default is 0)

    optETS      = True
    optETS@jopt = 1
    optETS@jopt = 1: Use the standardized data matrix to compute the time series. The default is to use data and evec.


This function is identical to eofunc_ts, except the return value will have metadata added based on metadata attached to data. See the eofunc_ts page for full documentation and examples.