()tcorr
(tcorr (expr1, expr2, tdim1, tdim2
This function produces a spatial map of temporal correlation coefficients.
expr1
- a valid grads expression that varies in time
expr2
- a valid grads expression that varies in time and may also vary in X and Y
tdim1
- starting time dimension expression
tdim2
- ending time dimension expression
The expr1
time series is correlated to the time series at each grid point in expr2
. The result is a grid of correlation coefficients that matches the X and Y dimensions of expr2
.
Usage Notes
-
If both
expr1
andexpr2
vary only in time, the output is a single value.
-
Use the
scorr
function to do correlation over the spatial domain.
Example
-
This example calculates the temporal correlation between sea level pressure and the defined variable elnino, an areal average of surface temperature in the equatorial Pacific.