<div dir="ltr"><div>To be clear,  the climo_3.ncl example uses <br></div><div><pre>a    = addfile("<b>xieArkin-T42.nc</b>","r")<br></pre><pre>This file can readily be downloaded from<br><br><a href="https://www.ncl.ucar.edu/Applications/Data/" target="_blank"><b>      https://www.ncl.ucar.edu/Applications/Data/</b></a><br></pre><pre>It contains a 'time' coordinate variable defined with<b> 'yyyymm' units<br><br>        int time(time) ;<br>                time:long_name = "Year-Month" ;<br>                time:units = "yyyymm" ;          <======<br><br></b>Hence, the following<b> coordinate subscripting <span style="color:rgb(0,0,255)">{</span>...<span style="color:rgb(0,0,255)">}</span> </b>can be used<b><br>          prc(<span style="color:rgb(0,0,255)">{200001:201612}</span>,:,:)<br><br></b>====<br>The GPCC file: <b><b><br><br>     <a href="http://precip.mon.total.v2018.nc" target="_blank">precip.mon.total.v2018.nc</a><br><br></b></b>can be downloaded from:<b><b><br>   <a href="https://www.esrl.noaa.gov/psd/data/gridded/data.gpcc.html" target="_blank">https://www.esrl.noaa.gov/psd/data/gridded/data.gpcc.html<br></a>-----<br><br></b></b>It has a <b><b>'time' </b></b>variable with units<b><b> as follows:<br><br>     </b></b>double time(time) ;<br>               time:long_name = "Time" ;<br>           <b>time:units = "days since 1800-1-1 00:00:00" ;</b><br>               [snip]<br>                time:actual_range = 33237., 79227. ;<b><b><br><br></b></b></pre><pre>This can readily be changed to yyyymm via the <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/cd_calendar.shtml" target="_blank"><b>cd_calendar</b></a> function <b><b><br></b></b></pre><pre><b><b><br></b>  a    = addfile("<a href="http://precip.mon.total.v2018.nc" target="_blank">precip.mon.total.v2018.nc</a>","r")<br>  prc  = a->precip                   ; (time,lat,lon)<br>  printVarSummary(prc)<br>                                <br>  yyyymm   = cd_calendar(prc&time,-1)<br>  <span style="color:rgb(255,0,0)">prc&time</span> = yyyymm                  ; assign a new time variable: YYYYMM                  <br><br>  printVarSummary(prc)               ; time: [189101..201612]<br>  print("========")<br></b></pre></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 8, 2019 at 7:48 AM Rick Brownrigg via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</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>Hi,</div><div><br></div><div>I don't have that data file handy, but given the error message and the name of that file, I speculate that the script has inappropriate time references for the file. Specifically, at the cited error line 41, there's this:</div><div><br></div><div>  prcClm = clmMonTLL (prc({200001:201612},:,:)) </div></div><div><br></div><div>which looks like references to years 2000 through 2016.  Does your file span those years, or do you need to adjust the script to reflect the file?</div><div><br></div><div>Hope that helps...</div><div>Rick</div><div><br></div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 8, 2019 at 5:01 AM Setareh Rahimi via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</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"><font size="4" face="times new roman, serif">Dear all,</font><div><font size="4" face="times new roman, serif">I got an error once run script  <span style="background-color:rgb(147,196,125)"><a href="https://www.ncl.ucar.edu/Applications/Scripts/climo_3.ncl" style="margin:0px;padding:0px;text-decoration-line:none;color:rgb(133,45,133);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial" target="_blank">climo_3.ncl</a> </span>from (<a href="https://www.ncl.ucar.edu/Applications/climo.shtml" target="_blank">https://www.ncl.ucar.edu/Applications/climo.shtml</a>).  Data I am using is<span style="background-color:rgb(244,204,204)"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span style="background-color:rgb(244,204,204)">precip.mon.total .<a href="http://v2018.nc" target="_blank">v2018.nc</a></span>. I attached the error along with the script I am using. Please, kindly advice me to remove the error.</span></font></div><div><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><font size="4" face="times new roman, serif">Best wishes,</font></span></div>





<div><font size="4">-- </font></div><div><div dir="ltr" class="m_3313415486250439086m_2222611883266098426gmail-m_-5298239220850043406gmail-m_-7425358469395818846gmail_signature"><font size="4">S.Rahimi</font><br><br></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></blockquote></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></blockquote></div></div>