<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Thanks for the code Jennifer! It returned a 425 for the grid size, which seems about right. Also, &quot;refdtotal&quot; is just a name I chose for reflectivity.</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;">
<div style="color:rgb(0,0,0); font-family:Tahoma; font-size:13px"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><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 face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:11pt">Aaron D. Perry</span></font></b><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:11pt"><br>
</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:11pt">Class of 2016</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:11pt"><br>
</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:11pt">Lyndon State College</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><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 face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:14.67px">Mobile: (617)&nbsp;780-4312</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:11pt"><br>
</span></font><font size="2" color="#006FC9"><span style="font-size:11pt">Twitter:&nbsp;</span></font><a href="https://twitter.com/arnpry" target="_blank" id="LPNoLP"><font size="2"><span style="font-size:11pt">@arnpry</span></font></a><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><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" color="#006FC9" style="font-family:Calibri,Arial,Helvetica,sans-serif"><span style="font-size:11pt">FB:&nbsp;</span></font><a href="https://www.facebook.com/arnpry" target="_blank" id="LPNoLP" style="font-family:Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2"><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 face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:11pt">LinkedIn:&nbsp;</span></font><a href="https://www.linkedin.com/in/arnpry" target="_blank" id="LPNoLP"><font face="Calibri,Arial,Helvetica,sans-serif" size="2"><span style="font-size:11pt">arnpry</span></font></a><a href="https://www.linkedin.com/in/upstream" target="_blank" id="LPNoLP"><font face="Calibri,Arial,Helvetica,sans-serif" size="2"><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 face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:11pt">Web:&nbsp;</span></font><a href="http://shearanalytics.net/" target="_blank" id="LPNoLP"><font face="Calibri,Arial,Helvetica,sans-serif" size="2"><span style="font-size:11pt"><font face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9">shearanalytics.net</font></span></font></a><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:11pt"><br>
Email:&nbsp;</span></font><a href="http://Aaron.Perry@lyndonstate.edu/" target="_blank" id="LPNoLP"><font face="Calibri,Arial,Helvetica,sans-serif" size="2"><span style="font-size:11pt">Aaron.Perry@lyndonstate.edu</span></font></a></font></div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gradsusr-bounces@gradsusr.org &lt;gradsusr-bounces@gradsusr.org&gt; on behalf of Jennifer M Adams &lt;jadams21@gmu.edu&gt;<br>
<b>Sent:</b> Wednesday, November 1, 2017 1:56:31 PM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Number of Full Domain Grid Values Available in HRRR Domain</font>
<div>&nbsp;</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
&gt; On Nov 1, 2017, at 12:37 PM, Jeff Duda &lt;jeffduda319@gmail.com&gt; wrote:<br>
&gt; 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.<br>
Jeff, <br>
Why would you begin your answer with such an irrelevant, vague, and negative statement? It taints everything else you might have to say. If you don’t like GrADS, unsubscribe or lurk quietly, but don’t answer questions with mean-spirited misinformation.
<br>
<br>
<br>
Aaron,<br>
&gt; I am trying to figure out how to output the exact number of grid values across my domain in GrADS using the HRRR model.<br>
&gt; 'set lat 37 48.5'<br>
&gt; 'set lon 276.0 295.0’<br>
<br>
At this point you can get the number of X grid points like this:<br>
‘set gxout stat'<br>
‘d refdtotal’<br>
* The following assumes the first line of the stat output starts with “Notice: Automatic Grid Interpolation…&quot;<br>
* If you are not using a PDEF , then the idims will be in line 3 of the stat output<br>
idims=sublin(result,4) <br>
x1=subwrd(idims,4); x2=subwrd(idims,6)<br>
xsize=x2-x1&#43;1<br>
<br>
&gt; <br>
&gt; *Generate a text file<br>
&gt; 'set gxout print'<br>
&gt; 'set prnopts %0.0f 219 1 u' &lt;--- What should my numl value be? How do I determine to print out a value for every grid cell in the domain?<br>
<br>
Now you can use the ‘xsize’ script variable in your ‘set prnopts’ statement. Your format statment %0.0f needs to be adjusted — the number to the left of the decimal indicates how many total places (columns) your number will occupy. The number to the right of
 the decimal indicates how many digits will appear to the right of the decimal in your formatted number.&nbsp; I suggest something like this:<br>
&nbsp;&nbsp; ‘set prnopts %5.1f ‘xsize’ 1 u’ <br>
But it depends a lot on what variable you are displaying. I don’t know what refdtotal is, so this is just a guess.<br>
—Jennifer<br>
<br>
&gt; 'd refdtotal'<br>
&gt; dummy=write('/home/weather/hrrr.txt',result)<br>
&gt; <br>
&gt; <br>
&gt; Best regards,<br>
&gt; <br>
&gt; <br>
&gt; Aaron D. Perry<br>
&gt; Class of 2016<br>
&gt; Lyndon State College<br>
&gt; Lyndonville, VT 05851<br>
&gt; Mobile: (617) 780-4312<br>
&gt; Twitter: @arnpry<br>
&gt; FB: fb.com/arnpry<br>
&gt; LinkedIn: arnpry<br>
&gt; Web: shearanalytics.net<br>
&gt; Email: Aaron.Perry@lyndonstate.edu<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; gradsusr@gradsusr.org<br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; -- <br>
&gt; Jeff Duda<br>
&gt; Post-doctoral research fellow<br>
&gt; University of Oklahoma School of Meteorology<br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; gradsusr@gradsusr.org<br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
--<br>
Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
gradsusr@gradsusr.org<br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</div>
</span></font></div>
</body>
</html>