<div dir="ltr">Hi Setareh,<div>For general NCL questions you should post to the ncl-talk email list. This email list is for NCL installation questions. Note though that traffic on both lists has seriously dropped off the past couple of years.</div><div><br></div><div>I think your problem is due to the time of your "at" array not being able to be converted by cd_calendar (as you have already converted it). The time array included as a coordinate variable in the array passed to calculate_daily_values must be able to be converted by cd_calendar as is noted in the <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/calculate_daily_values.shtml" target="_blank">documentation</a>. </div><div><br></div><div>Try switching this line that assigns the cd_calendar converted time array:</div><div>at&time = Time_3(mt)<br></div>to this that assigns the array converted by wrf_times_c:<div>at&time = Time_0(mt)</div><div><br></div><div>As always, verify that the fix works for your situation as I cannot test the script.</div><div>Good luck!</div><div>Adam</div><div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 14, 2023 at 5:25 AM Setareh Rahimi via ncl-install <<a href="mailto:ncl-install@mailman.ucar.edu" target="_blank">ncl-install@mailman.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">Dear all,<div>I want to plot daily average dust from 5 bins of dust, on 30 pressure levels ( output from the WRF-Chem model). However, I face some errors that arise from the<b style="background-color:rgb(255,229,153)"> calculate_daily_values() function. </b></div><div>Would you please kindly advise me to remove this issue?</div><div>The errors and my script have been attached.</div><div>Any suggestion is appreciated.</div><div>Kind regards<br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">S.Rahimi<br><br></div></div></div>
_______________________________________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-install" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist IV, Climate Analysis Section</font></span></div><div><span><font color="#888888">Climate and Global Dynamics Laboratory<br></font></span></div></div><div><span style="color:rgb(136,136,136)">National Center for Atmospheric Research</span><span><font color="#888888"><br></font></span></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>