<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Dear NCL users<div><br></div><div>I am trying to get rtest and ttest values from cross correlation lag 0. ESCORC was used to calculate cross correlation and I did rtest first then ttest using the equation from here&nbsp;<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/rtest.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/rtest.shtml</a>. However, the ttest value are not correct when I printout Min Max values (min=0 &nbsp; max=805.891).</div><div><br></div><div>How I can fix this?&nbsp;</div><div><br></div><div>Here is script I used to calculate.</div><div><br></div><div>massvsext1 = escorc(CMF3,EXT) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; calc cross correlations</div><div>massvsext = mask(massvsext1,landmask,0)</div><div>printVarSummary(massvsext)</div><div><br></div><div>Nr = dimsizes(CMF3&amp;time)</div><div><br></div><div>prob = rtest(massvsext,Nr,0)</div><div>probt = prob1*sqrt((Nr-2)/(1-prob1^2))</div><div><br></div><div>probt!0 = "lat"</div><div>probt!1 = "lon"</div><div>lat = fspan(-90,90,180)</div><div>lon = fspan(-180,180,360)</div><div>probt&amp;lat = lat</div><div>probt&amp;lon = lon</div><div>lat@longname = "latitude"</div><div>probt&amp;lat@units = "degrees_north"</div><div>lon@longname ="longitude"</div><div>probt&amp;lon@units = "degrees_east"</div><div><br></div><div>printVarSummary(probt)</div><div>printMinMax(probt,0)</div><div><br></div><div>Thank you for helps and comments.</div><div>Sun-</div></body></html>