<div dir="ltr"><div><div><div><div><div><div><div><div>This question is a bit ambiguous.<br><br></div>Assuming y(time,lat,lon)      ; (ntim,nlat,mlon)<br><br></div>   yNew = dtrend_n(y, True, 0)                     ; yNew=dtrend(y(lat|:,lon|:,time|:), True)<br><br></div>   slope  = <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/onedtond.shtml"><strong>onedtond</strong></a>(yNew@slope,(/nlat,nlon/))    ; slope(nlat,mlon)<br></div>   copy_VarCoords(y(0,:,:), slope)<br></div><div>   slope@long_name = &quot;...&quot;<br></div><div>   slope@units           = &quot;...&quot;<br></div>   printVarSummary(slope)<br><br></div>; arithmetic stddev<br><br></div>   slope_std = stddev(slope)<br><br></div>The weighted stddev could also be determined by weight the grid by (say) cos(lat*rad)<br><br><br><div><div><div><div><div><div>         <br><br>    <br></div></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 30, 2014 at 2:51 PM, Verena Lili <span dir="ltr">&lt;<a href="mailto:verena.prick@gmail.com" target="_blank">verena.prick@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hallo,<div><br></div>Anybody try to have a standard deviation of the trend using &quot;dtrend&quot; function? I&#39;d like to plot the trend values together with the their stdev. Thank you..,<div><br></div><div>Cheers</div><span class="HOEnZb"><font color="#888888">
<br><br>-- <br><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Regards,</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Dr. Verena.</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font face="verdana, sans-serif">School of Marine and Atmospheric Sciences<br>Stony Brook University</font><div><span style="font-family:verdana,sans-serif">homepage: </span><a href="http://www.somas.stonybrook.edu/" target="_blank">http://www.somas.stonybrook.edu/</a></div>
</div></div><br>
</font></span><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>
<br></blockquote></div><br></div>