<div dir="ltr"><span style="font-size:12.8px">How to plot correlation with positive and negative lag in ncl? </span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The function escorc <span style="color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px">computes the (Pearson) sample linear cross-correlations at lag 0 only.</span></div><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px"><br></span></div><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px">The function esccr computes sample cross-correlations. The link is </span><font color="#333333" face="verdana, sans-serif"><span style="font-size:13.3333px"><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/esccr.shtml" target="_blank">https://www.ncl.ucar.edu/<wbr>Document/Functions/Built-in/<wbr>esccr.shtml</a></span></font><span style="color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px"><br></span></div><div style="font-size:12.8px"><font color="#333333" face="verdana, sans-serif"><span style="font-size:13.3333px"><br></span></font></div><div style="font-size:12.8px"><font color="#333333" face="verdana, sans-serif"><span style="font-size:13.3333px">At the end of the above link the example 3 said that it is possible to calculate both positive and negative lags.</span></font></div><div style="font-size:12.8px"><font color="#333333" face="verdana, sans-serif"><span style="font-size:13.3333px"><br></span></font></div><div style="font-size:12.8px"><font color="#333333" face="verdana, sans-serif"><span style="font-size:13.3333px">Using the script at link :<a href="https://www.ncl.ucar.edu/Applications/Scripts/corel_3.ncl" target="_blank">https://www.ncl.ucar.edu/<wbr>Applications/Scripts/corel_3.<wbr>ncl</a></span></font></div><div style="font-size:12.8px"><font color="#333333" face="verdana, sans-serif"><span style="font-size:13.3333px"><br></span></font></div><div style="font-size:12.8px"><font color="#333333" face="verdana, sans-serif"><span style="font-size:13.3333px">Please inform how to modify the script to calculate correlation at negative lags. i.e. lag -1, lag -2, lag-3 and so on.</span></font></div><div style="font-size:12.8px"><font color="#333333" face="verdana, sans-serif"><span style="font-size:13.3333px"><br></span></font></div><div style="font-size:12.8px"><font color="#333333" face="verdana, sans-serif"><span style="font-size:13.3333px">The above script is running well for positive lags and lag 0.</span></font></div></div>