<div dir="ltr">Hi:<div><br></div><div>18 is a unit of measure.  It can be anything.</div><div><br></div><div>First you must calculate the running average... Then you can try the next step.</div><div><br></div><div>Barry</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 19, 2018 at 4:30 PM, Sancta Vega <span dir="ltr"><<a href="mailto:sanctavega@gmail.com" target="_blank">sanctavega@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Ok thanks<br></div>Your code calculate the running average (mean ) through a window of 18 days by a loop I think?<br></div>Me I need the daily value corresponding to the 85th percentile using a running window of 30 days for all years my result should be a (365 value corresponding to each day value).<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-04-19 14:41 GMT+02:00 Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">To start, are you familiar with:<div><br></div><div>




<span></span>





<p class="m_-3799136152033610844m_5496866342071435271gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-3799136152033610844m_5496866342071435271gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-3799136152033610844m_5496866342071435271gmail-Apple-converted-space">  </span>do j = 0,dims_o(0)-1</span></p>
<p class="m_-3799136152033610844m_5496866342071435271gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-3799136152033610844m_5496866342071435271gmail-s1" style="font-weight:normal;font-variant-ligatures:no-common-ligatures"><span class="m_-3799136152033610844m_5496866342071435271gmail-Apple-converted-space">   </span>dfp_rave(j,:) = </span><span class="m_-3799136152033610844m_5496866342071435271gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)"><b>run</b></span><span class="m_-3799136152033610844m_5496866342071435271gmail-s1" style="font-variant-ligatures:no-common-ligatures"><b>ave</b>(dfp_o(j,:),18,0)</span></p>
<p class="m_-3799136152033610844m_5496866342071435271gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-3799136152033610844m_5496866342071435271gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-3799136152033610844m_5496866342071435271gmail-Apple-converted-space">  </span>end do</span></p><p class="m_-3799136152033610844m_5496866342071435271gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-3799136152033610844m_5496866342071435271gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p>


<br></div><div>As to the 85th percentile, you need to figure out what it is, and then use the where statement.</div><div><br></div><div>Please try and then write again (to the list) when you have questions.</div><div><br></div><div>Barry</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-3799136152033610844h5">On Thu, Apr 19, 2018 at 2:36 PM, Sancta Vega <span dir="ltr"><<a href="mailto:sanctavega@gmail.com" target="_blank">sanctavega@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-3799136152033610844h5"><div dir="ltr"><div><div><div>Hi,<br></div>I would like to get number of days over a daily threshold during (Jan-dec 1800-1829 period).<br></div>The threshold is calculated using a moving(or running percentile 85th) over this period.<br></div><br><div>Could you please help me or give me an example of ncl script? </div><div><br></div><div>Thanks</div></div>
<br></div></div>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-3799136152033610844m_5496866342071435271gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US 914 432 3108<br></div></div></div>
</div></div>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US 914 432 3108<br></div></div></div>
</div>