<div dir="ltr">Hi Matt,<div>A NCL software engineer will have to step in as I'm not sure what else to suggest beyond upgrading to v6.3.0. It is strange that v6.2.1 here is fine with the file but 6.1.2 on your machine is not.</div><div>Adam</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 8, 2015 at 10:29 AM, Matt Flournoy <span dir="ltr"><<a href="mailto:mflournoy37@gmail.com" target="_blank">mflournoy37@gmail.com</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">Hi all,<div><br></div><div>Adam, thank you for helping with this. First, I entered the setfileoption line that you sent, but that didn't fix the problem or change the warning that I get: </div><div><br></div><div>"warning:getfilevarnames: rap_130_20150706_0000_000 contains no variables readable by NCL". </div><div><br></div><div>Then, I redownloaded the data file and worked with that, but still do not get any variable names from the file. As before, when I read the file in the exact same way that you do, I only get a missing value for varnames.</div><div><br></div><div>Do you, or anyone else, have any ideas about where to go from here?</div><div><br></div><div>Thanks again,</div><div>Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 4, 2015 at 10:18 AM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.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">Hi Matt,<div>Thanks for sending your complete code along with a pointer to the file. I was able to read your file into NCL v6.2.1 and v6.3.0 here, so I would suggest making sure you downloaded the entire file and/or redownload the file. Here's what I did:</div><div><br></div><div>a = addfile("Downloads/rap_130_20150706_0000_000.grb2","r")</div><div>varnames = getfilevarnames(a)<br></div><div>print(varnames)</div><div><br></div><div><div>Variable: varnames</div><div>Type: string</div><div>Total Size: 816 bytes</div><div> 102 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[102]</div><div>Coordinates: </div><div>(0)<span style="white-space:pre-wrap">        </span>TMP_P0_L1_GLC0</div><div>(1)<span style="white-space:pre-wrap">        </span>TMP_P0_L7_GLC0</div><div>(2)<span style="white-space:pre-wrap">        </span>TMP_P0_L100_GLC0</div><div>(3)<span style="white-space:pre-wrap">        </span>TMP_P0_L103_GLC0</div><div>(4)<span style="white-space:pre-wrap">        </span>TMP_P0_2L108_GLC0</div><div>(5)<span style="white-space:pre-wrap">        </span>POT_P0_L7_GLC0</div><div>(6)<span style="white-space:pre-wrap">        </span>POT_P0_L103_GLC0</div><div>(7)<span style="white-space:pre-wrap">        </span>EPOT_P0_L1_GLC0</div><div>(8)<span style="white-space:pre-wrap">        </span>DPT_P0_L103_GLC0</div><div>(9)<span style="white-space:pre-wrap">        </span>DEPR_P0_L103_GLC0</div><div>(10)<span style="white-space:pre-wrap">        </span>SPFH_P0_L103_GLC0</div><div>(11)<span style="white-space:pre-wrap">        </span>RH_P0_L4_GLC0</div></div><div>.....</div><div><br></div><div><br></div><div>I searched the NCL website for "RUC" and got pointed to skewt example #6 here:</div><div><a href="http://www.ncl.ucar.edu/Applications/skewt.shtml#ex6" target="_blank">http://www.ncl.ucar.edu/Applications/skewt.shtml#ex6</a><br></div><div><br></div><div>Looking at that code, they add a setfileoption:</div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">setfileoption("grb","SingleElementDimensions","Initial_time")</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><br></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">As you can see I did not need that setfileoption to open the file correctly, but perhaps for some reason your set up does?</font></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><span style="font-family:arial,helvetica,sans-serif">Hope that helps, if you continue to have trouble with the file let the ncl-talk email list know. </span><br></pre><pre style="word-wrap:break-word"><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;white-space:pre-wrap">Adam</span><br></pre></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, Sep 4, 2015 at 8:56 AM, Matt Flournoy <span dir="ltr"><<a href="mailto:mflournoy37@gmail.com" target="_blank">mflournoy37@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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 style="white-space:pre-wrap">        </span>rap_130_20150706_0000_000</div><div>path:<span style="white-space:pre-wrap">        </span><a href="http://rap_130_20150706_0000_000.nc" target="_blank">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><span><font color="#888888"><div><br></div>-- <br><div><div dir="ltr">Matthew Flournoy<div>M.S. Meteorology Candidate, University of Oklahoma</div><div>B.S. Meteorology, Penn State University</div></div></div>
</font></span></div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888"><a href="tel:303-497-1726" value="+13034971726" target="_blank">303-497-1726</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</font></span></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Matthew Flournoy<div>M.S. Meteorology Candidate, University of Oklahoma</div><div>B.S. Meteorology, Penn State University</div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>