[ncarg-talk] Correlation with both positive and negative lags

Arka Banerjee arka354deb at gmail.com
Wed Nov 8 05:52:07 MST 2017


How to plot correlation with positive and negative lag in ncl?

The function escorc computes the (Pearson) sample linear cross-correlations
at lag 0 only.

The function esccr computes sample cross-correlations. The link is
https://www.ncl.ucar.edu/Document/Functions/Built-in/esccr.shtml

At the end of the above link the example 3 said that it is possible to
calculate both positive and negative lags.

Using the script at link :https://www.ncl.ucar.edu/
Applications/Scripts/corel_3.ncl

Please inform how to modify the script to calculate correlation at negative
lags. i.e. lag -1, lag -2, lag-3 and so on.

The above script is running well for positive lags and lag 0.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncarg-talk/attachments/20171108/93d9dcce/attachment.html>


More information about the ncarg-talk mailing list