[gradsusr] Number of Full Domain Grid Values Available in HRRR Domain

Jeff Duda jeffduda319 at gmail.com
Wed Nov 1 12:37:46 EDT 2017

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.

If you really need to use GrADS, one trick you can try is this

'd asum(const(refdtotal,1),lon=276,lon=295,lat=37,lat=48.5)'

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).

Jeff Duda

On Wed, Nov 1, 2017 at 11:12 AM, Perry, Aaron <Aaron.Perry at lsc.vsc.edu>

> I am trying to figure out how to output the exact number of grid values
> across my domain in GrADS using the HRRR model.
> *GrADS Code:*
> *Domain
> 'set lat 37 48.5'
> 'set lon 276.0 295.0'
> *Generate a text file
> 'set gxout print'
> '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?*
> 'd refdtotal'
> dummy=write('/home/weather/hrrr.txt',result)
> Best regards,
> *Aaron D. Perry*
> Class of 2016
> Lyndon State College
> Lyndonville, VT 05851
> Mobile: (617) 780-4312
> Twitter: @arnpry <https://twitter.com/arnpry>
> FB: fb.com/arnpry <https://www.facebook.com/arnpry>
> LinkedIn: arnpry <https://www.linkedin.com/in/arnpry>
> <https://www.linkedin.com/in/upstream>
> Web: shearanalytics.net
> Email: Aaron.Perry at lyndonstate.edu
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

Jeff Duda
Post-doctoral research fellow
University of Oklahoma School of Meteorology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20171101/1adda93e/attachment.html 

More information about the gradsusr mailing list