<div dir="ltr"><div><div><div><div>First note - I wouldn't prefer to use GrADS if I had other software available, as using GrADS isn't guaranteed to give a 100% accurate answer. If you have access to the NCO utilities (ncdump) and the raw HRRR output, I would just do an 'ncdump -h' on the output file.<br><br></div>If you really need to use GrADS, one trick you can try is this<br><br></div>'d asum(const(refdtotal,1),lon=276,lon=295,lat=37,lat=48.5)'<br><br></div>This function creates a new field such that all valid data points in the field refdtotal (which should match the HRRR domain) are set to 1, and then the sum of all those 1s is taken over the domain. Thus, it should spit out the number of grid points in the domain. You can use any field in the data set and any domain bounds so long as they fully encompass the valid data, as the asum() function won't consider missing data points (i.e., where the field is invalid outside of the model domain). <br><br></div>Jeff Duda <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 1, 2017 at 11:12 AM, Perry, Aaron <span dir="ltr"><<a href="mailto:Aaron.Perry@lsc.vsc.edu" target="_blank">Aaron.Perry@lsc.vsc.edu</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 id="m_4182348045493431811divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>I am trying to figure out how to output the exact number of grid values across my domain in GrADS using the HRRR model.</p>
<p><br>
</p>
<p><b>GrADS Code:</b></p>
<p><br>
</p>
<p>*Domain</p>
<p></p>
<div>'set lat 37 48.5'</div>
<div>'set lon 276.0 295.0'</div>
<div><br>
</div>
<div>*Generate a text file</div>
<div>
<div>'set gxout print'</div>
<div>'set prnopts %0.0f <b>219</b> 1 u' <b><--- What should my numl value be? How do I determine to print out a value for every grid cell in the domain?</b></div>
<div>'d refdtotal'</div>
<div>dummy=write('/home/weather/<wbr>hrrr.txt',result)</div>
</div>
<p></p>
<p><br>
</p>
<p>Best regards,</p>
<div id="m_4182348045493431811Signature">
<div id="m_4182348045493431811divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div style="color:rgb(0,0,0);font-family:Tahoma;font-size:13px"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt"><br>
</span></font></font></div>
<div style="color:rgb(0,0,0);font-family:Tahoma;font-size:13px"><font face="Calibri,Arial,Helvetica,sans-serif"><b><font size="2" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt">Aaron D. Perry</span></font></b><font size="2" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt"><br>
</span></font><font size="2" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt">Class of 2016</span></font><font size="2" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt"><br>
</span></font><font size="2" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt">Lyndon State College</span></font><font size="2" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt"><br>
Lyndonville, VT 05851</span></font></font></div>
<div style="color:rgb(0,0,0);font-family:Tahoma;font-size:13px"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:14.67px">Mobile: (617) 780-4312</span></font><font size="2" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt"><br>
</span></font><font size="2" color="#006FC9"><span style="font-size:11pt">Twitter: </span></font><a href="https://twitter.com/arnpry" id="m_4182348045493431811LPNoLP" target="_blank"><font size="2"><span style="font-size:11pt">@arnpry</span></font></a><font size="2" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt"><br>
</span></font></font></div>
<div style="color:rgb(0,0,0);font-family:Tahoma;font-size:13px"><font style="font-family:Calibri,Arial,Helvetica,sans-serif" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt">FB: </span></font><a href="https://www.facebook.com/arnpry" id="m_4182348045493431811LPNoLP" style="font-family:Calibri,Arial,Helvetica,sans-serif" target="_blank"><font size="2" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt">fb.com/arnpry</span></font></a></div>
<div style="color:rgb(0,0,0);font-family:Tahoma;font-size:13px"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt">LinkedIn: </span></font><a href="https://www.linkedin.com/in/arnpry" id="m_4182348045493431811LPNoLP" target="_blank"><font size="2" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt">arnpry</span></font></a><a href="https://www.linkedin.com/in/upstream" id="m_4182348045493431811LPNoLP" target="_blank"><font size="2" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt"></span></font></a></font></div>
<div style="color:rgb(0,0,0);font-family:Tahoma;font-size:13px"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt">Web: </span></font><a href="http://shearanalytics.net/" id="m_4182348045493431811LPNoLP" target="_blank"><font size="2" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt"><font color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif">shearanalytics.net</font></span></font></a><font size="2" color="#006FC9" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt"><br>
Email: </span></font><a href="http://Aaron.Perry@lyndonstate.edu/" id="m_4182348045493431811LPNoLP" target="_blank"><font size="2" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt">Aaron.Perry@<wbr>lyndonstate.edu</span></font></a></font></div>
</div>
</div>
</div>
</div>
<br>______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Jeff Duda<br>Post-doctoral research fellow<br>University of Oklahoma School of Meteorology<br></div></div></div></div></div>
</div>