<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>The '<a href="http://soi.nc" target="_blank">soi.nc</a>' file is no longer available. However, you can use the <b>SOI.nc </b>file:</div><div>[1] use the <b>Trenberth 11-pt filter</b> and <br></div><div>[2] Use a decadal filter</div><div><br></div><div><b>See attached</b><br>====<br></div><div><br> f = addfile ("SOI.nc", "r") ; add file<br> date = f->time ; YYYYMM<br> dsoi = f->SOI_DARWIN ; Darwin SOI<br><br></div><div>;---Trenberth's 11-point (month) smoother effectively removes fluctuations<br>; with periods of less than 8 months but includes all others.<br>; At 24 months 80% of the variance is retained.<br>; Use reflective boundaries (kopt=1) to fill out plot<br><br> kopt = 1<br> wgtk = (/ 0.0270, 0.05856, 0.09030, 0.11742, 0.13567, \<br> 0.1421, 0.13567, 0.11742, 0.09030, 0.05856, 0.027 /)<br> dsoik = <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_runave_n_Wrap.shtml"><b>wgt_runave_n_Wrap </b></a>(dsoi, wgtk, kopt, 0)<br> <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/printVarSummary.shtml"><b>printVarSummary</b></a>(dsoik)<br> <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/printMinMax.shtml"><b>printMinMax</b></a>(dsoik,0)<br><br>;---Decadal filter<br><br> ihp = 0 ; low_pass<br> sigma = 1.0 ; Lanczos sigma<br> nWgt = 121 ; loose 60 (nWgt/2) months each end<br> fca = 1./120. ; decadal<br> wgtd = <b><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/filwgts_lanczos.shtml">filwgts_lanczos</a> </b>(nWgt, ihp, fca, -999., sigma ) ; generate eights<br> dsoid = <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/wgt_runave_n_Wrap.shtml"><b>wgt_runave_n_Wrap</b></a> ( dsoi, wgtd, 0, 0 ) ; apply weights<br><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/printVarSummary.shtml"><b> printVarSummary</b></a>(dsoid)<br> <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/printMinMax.shtml"><b>printMinMax</b></a>(dsoid,0)</div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 22, 2019 at 11:09 PM Atul Saini <<a href="mailto:atulsainimail@gmail.com" target="_blank">atulsainimail@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div><font size="4">Hello all,</font></div><div><font size="4"> Data file for example <span style="color:rgb(0,0,255)">bar_2.ncl </span>is required (<a href="http://soi.nc" target="_blank">soi.nc</a>). We have SOI.nc at <a href="https://www.ncl.ucar.edu/Applications/Data/" target="_blank">https://www.ncl.ucar.edu/Applications/Data/</a> but it doesn't have the variables used in the example script.</font></div><div><font size="4"><br></font></div><div><font size="4"></font><br></div><div><div><div dir="ltr" class="gmail-m_-7873490965122689601gmail-m_565194632441309334m_-5126319692368680894gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font size="4">Regards,</font></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=1flpEpH50fxgPRxFvuyiLu2A70K0UoFx-&revid=0Byj9ykpbAx3od3R4N016WWh0MnlGQ1JHUTg4Nk5HVmVMS2ZNPQ" width="304" height="116"><br></div><div> <br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>