<div dir="ltr"><div><div>Also, if you want the Jan-to-May 2018 months to be included,<br><br>You can download the recent NCL 6.5.0 <br>     <a href="http://www.ncl.ucar.edu/current_release.shtml">http://www.ncl.ucar.edu/current_release.shtml</a><br><br></div>Use:<br><br><a href="http://www.ncl.ucar.edu/Document/Functions/Shea_util/dim_pad_modulo.shtml">http://www.ncl.ucar.edu/Document/Functions/Shea_util/dim_pad_modulo.shtml</a><br><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 19, 2018 at 9:38 AM, Rashed Mahmood <span dir="ltr"><<a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@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>Hi Zhang,</div><div><br></div><div>The function "month_to_annual" expects time to be a multiple of 12. However, printing yyyymm in your script suggests that for 2018 there are 5 months in the file which means that time dimension is not a multiple of 12 assuming that the time starts at January. <br></div><div>Setting an end time, for example 201712, would make the script run successfully. See attached.</div><div><br></div><div>Cheers,</div><div>Rashed<br></div><div>  <br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Jul 18, 2018 at 9:30 PM, 张盼峰 <span dir="ltr"><<a href="mailto:zhangpanfeng@cug.edu.cn" target="_blank">zhangpanfeng@cug.edu.cn</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="h5"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><span style="font-size:18px">Hello everyone,</span></div><div><span style="font-size:18px">When
 I run the script in the attachment to convert the monthly value to 
yearly value, there will always be an error, as shown below</span></div><div><img alt=""></div><div><br></div><div><span id="m_-5940758992357773574m_-6375025096996594197result_box" class="m_-5940758992357773574m_-6375025096996594197short_text" lang="en"><span>The data used in the script can be downloaded at <a href="https://crudata.uea.ac.uk/cru/data/temperature/HadCRUT.4.6.0.0.median.nc" target="_blank">https://crudata.uea.ac.uk/cru/<wbr>data/temperature/HadCRUT.4.6.0<wbr>.0.median.nc</a><br></span></span></div><div><br></div><div>Thank everyone very much!</div><div>Best regards!</div><div>Zhang Panfeng<br></div><div><br></div></div><br><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></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></div>