<div dir="ltr"><pre>The question is not clear to me.<br></pre><pre>Click &#39;Functions&#39;; search for &#39;correlation&#39;<br><br><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/escorc_n.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Built-in/escorc_n.shtml</a><br><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/pattern_cor.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Contributed/pattern_cor.shtml</a><br></pre><pre>===<br><br>x(ntim,nlat,mlon), y(ntim,nlat,mlon)<br><br>r = <b>escorc_n</b>(x,y,0,0)   ; r(nlat,mlon)  ; r2 = r^2<br><br>===<br>ra = <b>pattern_cor</b>(x, y, 1.0, 0)    ; no weighting, centered,  ra(ntim);  r2 = ra^2<br><br>clat = <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/cos.shtml" target="_blank"><b>cos</b></a>(0.01745329*lat)        ; cos(lat) weight
re = <b>pattern_cor</b>(x, y,clat, 0)    ; cos(lat) weighting, centered, re(ntim); r2 = re^2<br><br>===<br><br></pre></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 5, 2015 at 5:16 AM, Darren Slevin <span dir="ltr">&lt;<a href="mailto:slevindn@tcd.ie" target="_blank">slevindn@tcd.ie</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I would like to compute the coefficient of determination (r squared) between 2<br>
gridded datasets of the form (time,lat,lon). Is there to do this using<br>
NCL? Can I use the function regcoef? Thanks.<br>
regards,<br>
Darren<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>