<div dir="ltr"><span style="font-size:13px">Hi all,</span><div style="font-size:13px"><br></div><div style="font-size:13px">Does anyone have experience reading RUC GRIB2 files? I'm trying to read GRIB2 output from 13km RUC model data, which is available on the NOMADS site (<a href="http://nomads.ncdc.noaa.gov/data.php#hires_weather_datasets" target="_blank">http://nomads.ncdc.noaa.gov/data.php#hires_weather_datasets</a>). Specifically, I am trying to read files from 06 July 2015, but I suspect this problem is universal among at least all of the 13km RUC GRIB2 output files.</div><div style="font-size:13px"><br></div><div style="font-size:13px">I've tried a couple ways to read the GRIB2 data, including reading the GRIB2 file and also trying to convert the GRIB2 file to netcdf. When I try to read the GRIB2 data directly (specifically "rap_130_20150706_0000_000.grb2"), I get the following warning message:</div><div style="font-size:13px"><br></div><div style="font-size:13px"><div>warning:getfilevarnames: rap_130_20150706_0000_000 contains no variables readable by NCL</div><div><br></div><div>I've pasted my NCL script that yields this warning at the bottom of my message.</div><div><br></div><div>Second, when I try to convert the GRIB2 file to netcdf using "ncl_convert2nc" in the command line, I get this similar warning:</div><div><br></div><div><div>warning:getfilevarnames: rap_130_20150706_0000_000 contains no variables readable by NCL</div><div>./rap_130_20150706_0000_000.grb2 contains no variables readable by NCL: converting global attributes only</div></div><div><br></div><div>Then, when I "ncl_filedump" the created netcdf file, I get this:</div><div><br></div><div><div>Variable: f</div><div>Type: file</div><div>filename:<span class="" style="white-space:pre">        </span>rap_130_20150706_0000_000</div><div>path:<span class="" style="white-space:pre">        </span><a href="http://rap_130_20150706_0000_000.nc">rap_130_20150706_0000_000.nc</a></div><div> file global attributes:</div><div> creation_date : Fri Sep 4 09:52:47 CDT 2015</div><div> NCL_Version : 6.2.1</div><div> system : Linux bigbang.protect.nssl 2.6.32-504.12.2.el6.x86_64 #1 SMP Sun Feb 1 12:14:02 EST 2015 x86_64 x86_64 x86_64 GNU/Linux</div><div> Conventions : None</div><div> grib_source : rap_130_20150706_0000_000.grb2</div><div> title : NCL: convert-GRIB-to-netCDF</div><div> dimensions:</div><div> variables:</div></div><div><br></div></div><div style="font-size:13px">Do you know how to address this issue? I am currently using NCL version 6.2.1 on bigbang, and this problem also appears in other NCL versions.</div><div style="font-size:13px"><br></div><div style="font-size:13px">Thank you,</div><div style="font-size:13px">Matt </div><div style="font-size:13px"><br></div><div style="font-size:13px"><br></div><div style="font-size:13px"><br></div><div style="font-size:13px">------------ begin NCL script ---------------</div><div style="font-size:13px"><br></div><div style="font-size:13px"><div>;******************************************************************************;</div><div>; Load libraries.</div><div>;******************************************************************************;</div><div><br></div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"</div><div><br></div><div>;-----------------------------------------------------------------------------;</div><div>; Synoptic overview plots of the July 06 2015 case from the RUC.</div><div>;-----------------------------------------------------------------------------;</div><div><br></div><div>begin</div><div><br></div><div> ruc_filepath = ("/home/matt.flournoy/PECAN/overview/data/RUC_data/rap_130_20150706_0000_000.grb2")</div><div> ruc_file = addfile(ruc_filepath,"r")</div><div><br></div><div> varnames = getfilevarnames(ruc_file)</div><div><br></div><div> if(.not.any(ismissing(varnames))) then</div><div><br></div><div> do i=0,dimsizes(varnames)-1</div><div><br></div><div> printFileVarSummary(ruc_file,varnames(i))</div><div><br></div><div> end do</div><div><br></div><div> end if</div><div><br></div><div>end</div><div><br></div><div>--------------- end NCL script ----------------</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Matthew Flournoy<div>M.S. Meteorology Candidate, University of Oklahoma</div><div>B.S. Meteorology, Penn State University</div></div></div>
</div>