<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, "refdtotal" 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, "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 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) 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: </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: </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: </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: </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: </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 <gradsusr-bounces@gradsusr.org> on behalf of Jennifer M Adams <jadams21@gmu.edu><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> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
> On Nov 1, 2017, at 12:37 PM, Jeff Duda <jeffduda319@gmail.com> wrote:<br>
> 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>
> 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>
> 'set lat 37 48.5'<br>
> '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…"<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+1<br>
<br>
> <br>
> *Generate a text file<br>
> 'set gxout print'<br>
> 'set prnopts %0.0f 219 1 u' <--- 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. I suggest something like this:<br>
‘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>
> 'd refdtotal'<br>
> dummy=write('/home/weather/hrrr.txt',result)<br>
> <br>
> <br>
> Best regards,<br>
> <br>
> <br>
> Aaron D. Perry<br>
> Class of 2016<br>
> Lyndon State College<br>
> Lyndonville, VT 05851<br>
> Mobile: (617) 780-4312<br>
> Twitter: @arnpry<br>
> FB: fb.com/arnpry<br>
> LinkedIn: arnpry<br>
> Web: shearanalytics.net<br>
> Email: Aaron.Perry@lyndonstate.edu<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>
> <br>
> <br>
> <br>
> <br>
> -- <br>
> Jeff Duda<br>
> Post-doctoral research fellow<br>
> University of Oklahoma School of Meteorology<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>
<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>