<div dir="ltr"><div>Couple ideas:<br></div><div><br></div><div>Also just to make sure that your variable is getting in there properly, if you manually edit the script to just have 6 in place for fhour for example, does it still fail? That would eliminate that substitution as a possible issue. Also check for any errors if you're running it from command line. I run a lot of my scripts via a master PHP file and you won't see the errors that way, you have to execute grads -lbc 'run <a href="http://script.gs">script.gs</a>' to make sure you're seeing the errors.</div><div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 7, 2019 at 12:58 PM Jeff Duda <<a href="mailto:jeffduda319@gmail.com">jeffduda319@gmail.com</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">Have you verified some basic facts:<div>-All of the data files over which you are summing exist and are not full of unrealistic data or 0s</div><div>-Your control file is correctly constructed (especially the TDEF line)</div><div>-APCPsfc and CSNOWsfc plot just fine on their own during the intervals of summation</div><div><br></div><div>I suspect once you investigate these individual points the nature of the problem will be exposed. If you can verify all of that and it still isn't working, send your full control file and script file.</div><div><br></div><div>Jeff D.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 7, 2019 at 5:54 AM Tyler Youschak <<a href="mailto:tyleryouschak@gmail.com" target="_blank">tyleryouschak@gmail.com</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><div dir="auto">Thanks for getting back!</div></div><div dir="auto"><br></div><div dir="auto">For fhour, I’m passing the fhour to the script from arguments. For instance, for the 12z run, I’m passing 6 for fhour, but as I get new data in - say the next hour (not next z run) and pass it as fhour so it would increment to 7.</div><div dir="auto"><br></div><div dir="auto">Is this what you mean?</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Tyler</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 7, 2019 at 1:07 AM Jeff Duda <<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</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">You'll need to include the declarations of 'fhour' in order to get more complete help.<div><br></div><div>Jeff Duda</div></div><br><div class="gmail_quote"></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 6, 2019 at 4:39 PM Tyler Youschak <<a href="mailto:tyleryouschak@gmail.com" target="_blank">tyleryouschak@gmail.com</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote></div><div class="gmail_quote"><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">Hello all,<div><br></div><div>I'm trying to create a script to total, for instance, the total rain or snowfall (10:1) throughout a model run of the HRRR. I'm getting my hrrr files from nomads' ftp.</div><div><br></div><div>Within my grads file, I'm doing this:</div><div>'define snowacc = sum((APCPsfc*CSNOWsfc),t=1,t='fhour+1')/2.54' </div><div>'d snowacc'<br></div><div><br></div><div>However, when I do this, it is only showing the amount of snow that fell during one hour, and not from the fhour of "0" (or 1).</div><div><br></div><div>I'm having the same issue with rain precipitation as well.</div><div><br></div><div>If anyone is able to shed some light on this, it would be appreciated.</div><div><br></div><div>Thanks,</div><div>Tyler</div></div></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2"><span>Jeff Duda, Research Scientist</span></font></div><div dir="ltr"><font size="2"><span></span></font>University of Colorado Boulder</div><div dir="ltr"><font size="2"><span></span></font>Cooperative Institute for Research in Environmental Sciences</div><div dir="ltr">NOAA/OAR/ESRL/Global Systems Division<br><font size="2"><span>

<span>Boulder, CO<br></span></span></font>



</div></div></div></div></div></div></div></div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div></div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2"><span>Jeff Duda, Research Scientist</span></font></div><div dir="ltr"><font size="2"><span></span></font>University of Colorado Boulder</div><div dir="ltr"><font size="2"><span></span></font>Cooperative Institute for Research in Environmental Sciences</div><div dir="ltr">NOAA/OAR/ESRL/Global Systems Division<br><font size="2"><span>

<span>Boulder, CO<br></span></span></font>



</div></div></div></div></div></div></div></div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div>