pysteps.timeseries.correlation.temporal_autocorrelation

pysteps.timeseries.correlation.temporal_autocorrelation(X, MASK=None)

Compute lag-l autocorrelation coefficients gamma_l, l=1,2,…,n-1, for a time series of n two-dimensional input fields.

Parameters:
X : array_like

Two-dimensional array of shape (n, w, h) containing a time series of n two-dimensional fields of shape (w, h). The input fields are assumed to be in increasing order with respect to time, and the time step is assumed to be regular (i.e. no missing data). X is required to have finite values.

MASK : array_like

Optional mask to use for computing the correlation coefficients. Pixels with MASK==False are excluded from the computations.

Returns:
out : ndarray

Array of length n-1 containing the temporal autocorrelation coefficients for time lags l=1,2,…,n-1.