<div dir="ltr"><div>Hi,</div><div><br></div><div>It appears that something goes awry in the function calculate_daily_values(), and errors cascade from there. The docs for that function state that the input variable must have an associated
<i>time</i> coordinate variable with units recognizable by cd_calendar:</div><div><br></div><div> <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/calculate_daily_values.shtml">https://www.ncl.ucar.edu/Document/Functions/Contributed/calculate_daily_values.shtml</a> <br></div><div><br></div><div>I suspect that is the problem. I didn't have access to look at your data file, and in any case, it would take me more time than I can devote at the moment to figure out the coordinate stuff. But perhaps this gives you a hint on how to move forward.</div><div><br></div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 8, 2022 at 3:57 AM Setareh Rahimi via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@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"><div>Dear NCL users,</div><div><br></div><div>I am trying to plot the total dust
concentration from the WRF-Chem output. To achieve this end, I sum over 5
dust bin sizes (check the attached script) this way:</div><div><span style="background-color:rgb(255,229,153)"> "at= a1+a2+a3+a4+a5".</span></div><div><span style="background-color:rgb(255,229,153)"><br></span></div><div><span style="background-color:rgb(255,229,153)">I am not sure if this way of summation over 5 variables work correctly!<br></span></div><div><span style="background-color:rgb(255,229,153)"><br></span></div><div><span style="background-color:rgb(255,229,153)"><span style="background-color:rgb(255,255,255)">However, as you can see from the attached screenshot, I received some errors. The first error is weird to me cause <span style="background-color:rgb(234,153,153)">I did not define the variable "x" in my script</span>.</span><br></span></div><div><span style="background-color:rgb(180,167,214)">"fatal:(missing) is not a named dimension in variable (x)". <br></span></div><div><span style="background-color:rgb(180,167,214)"><br></span></div><div><span style="background-color:rgb(180,167,214)"><span style="background-color:rgb(255,255,255)">What is wrong with my script that NCL cannot recognize the "(Day)" variable?</span><br></span></div><div><span style="background-color:rgb(180,167,214)"><br></span></div><div><span style="background-color:rgb(255,255,255)">Please kindly advise me in terms of these issues.</span></div><div><span style="background-color:rgb(180,167,214)"><span style="background-color:rgb(255,255,255)">Best wishes,</span><br></span></div><div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;color:rgb(34,34,34);font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/1_YBJguj3TFdH8ih6rIxE7pz8HeFlqmgE/view?usp=drive_web" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0px;border:medium none" aria-label="DUST_chem.nc.gz" target="_blank"><img style="vertical-align: bottom; border: medium none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom">DUST_chem.nc.gz</span></a><img style="display: none; opacity: 0.55; float: right;"></div><br clear="all"><br>-- <br><div dir="ltr">S.Rahimi<br><br></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>