<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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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_-6375025096996594197result_box" class="m_-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.<wbr>0.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>______________________________<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>