<div dir="ltr"><div>Jim<br><br></div>NCL 6.3.0 handles the WRF grib2 file just fine [well,  99%]. <br><br>%> <b>ncl_filedump</b> 1807190600_wrfout_arw_d02.grb2  <b>| less</b><br><div><br></div><div>There is only <b>one initial time</b>  and <b>one forecast time</b> on the file. If you want single dimension included in the dimensioning:<br><br>%> <b>ncl_filedump</b> 1807190600_wrfout_arw_d02.grb2 <b>-itime</b> <b>-ftime</b>  <b>| less</b><br><br>%> <b>ncl_filedump</b> 1807190600_wrfout_arw_d02.grb2 <b>-itime</b> <b>-ftime</b>   >&!   out.<b>630_itime_ftime</b>.1807190600_wrfout<wbr>_arw_d02<br><br></div><div>Within an NCL script:   <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/setfileoption.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/setfileoption.shtml</a><br><br>   <b>setfileoption</b>("grb","SingleEle<wbr>mentDimensions","Initial_time"<wbr>)<br></div><div>or<br>   <b>setfileoption</b>("grb","SingleEle<wbr>mentDimensions", (/"Initial_time","Forecast<wbr>_time"/))<br><br></div><div><br>===<br></div><div>I have also tried the recently released 6.5.0<br><br></div><div>You get the exact same result.<br><br>===<br></div><div>NOTE:<br></div><div><br></div><div><br>[a]  Some of the descriptive attributes:<br><br>      float <b>REFC_P8_L10_GLC0_max30min</b> ( initial_time0_hours, ygrid_0, xgrid_0 )<br>         center :       US National Weather Service - NCEP (WMC)<br>         production_status :    Operational products<br>         long_name :    Composite reflectivity<br>         units :        dB<br>         _FillValue :   1e+20<br>         coordinates :  gridlat_0 gridlon_0<br>         grid_type :    Lambert Conformal can be secant or tangent, conical or bipolar<br>         parameter_discipline_and_categ<wbr>ory :    Meteorological products, Forecast radar imagery<br>         parameter_template_discipline_<wbr>category_number :        ( 8, 0, 16, 5 )<br>         level_type :   Entire Atmosphere<br>         level :         0<br><b>         type_of_statistical_processing :       Maximum<br>         statistical_process_duration : 30 minutes (ending at forecast time)</b><br>         forecast_time :        780<br>         forecast_time_units :  minutes<br><br></div><div>[b] <b>Warning messages<br><br></b></div><div><b>The variables are unpacked correctly!!<br><br></b></div><div>NCL uses look-up tables to match-up parameter id numbers with information such as lon_name, units, etc.<br></div><div>Unfortunately, GRIB is a moving target and NCL developers are not privy to information or it is just not publicly available.<br><br></div><div>So, for example:<br></div><div><br><b>warning: Entry (243)</b> not found in code table file /Users/shea/devel/ncl/lib/ncarg/grib2_codetables/ncep/4/4.2.0.1.table<br></div><div>NCL unpacks the variables and creates the appropriate dimension names. It just does not have the needed lookup info.<br></div><div><br>      float <b>VAR</b>_0_1_<b>243</b>_P0_L1_GLC0 ( initial_time0_hours, ygrid_0, xgrid_0 )<br>         center :       US National Weather Service - NCEP (WMC)<br>         production_status :    Operational products<br>         long_name :    unknown variable name<br>         units :        unknown<br>         _FillValue :   1e+20<br>         coordinates :  gridlat_0 gridlon_0<br>         grid_type :    Lambert Conformal can be secant or tangent, conical or bipolar<br>         parameter_discipline_and_<wbr>category :    <b>Meteorological products, Moisture</b><br>         parameter_template_discipline_<wbr>category_number :        ( 0, 0, 1, 243 )<br>         level_type :  <b> Ground or water surface</b><br>         level :         0<br>         forecast_time :        780<br>         forecast_time_units :  minutes<br><br></div><div>HTH<br></div><div>D<br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 19, 2018 at 2:26 PM, Jim Means <span dir="ltr"><<a href="mailto:jim@weatherextreme.com" target="_blank">jim@weatherextreme.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>I am trying to find out what's inside a grib2 file created by
      WRF, and I'm attempting to use ncl_filedump to find out the
      details. I'm running ncl_filedump with no options:</p>
    <p>ncl_filedump 1807190600_wrfout_arw_d02.grb2<br>
    </p>
    <p>and I get</p>
    <p>fatal:NclGRIB2: Invalid Product Definition Template.<br>
      <br>
      Variable: f<br>
      Type: file<br>
      (0) File Missing Value : -1<br>
      <br>
    </p>
    <p>What am I doing wrong?</p>
    <p><br>
    </p>
    <p>Thanks,</p>
    <p>Jim<span class="HOEnZb"><font color="#888888"><br>
    </font></span></p><span class="HOEnZb"><font color="#888888">
    <div class="m_-8470552032457726943moz-signature">-- <br>
      
      
      
      
      <p style="text-decoration:none;color:#000000;font-size:13px;font-family:'Roboto',sans-serif;font-weight:700!important">James
        D. Means, Ph.D.<br>
        <span style="font-size:10px;font-family:'Roboto',sans-serif">Senior
          Atmospheric & Climate Scientist</span><br>
        <span style="text-decoration:none;font-size:10px">California
          Office</span><br>
        <span style="text-decoration:none;font-size:10px">Tele:
          619-495-1638 | Fax: 775-636-8430</span><br>
        <span style="text-decoration:none;font-size:10px">930 Tahoe
          Blvd., Suite 802-560<span style="text-decoration:none"><br>
            <span style="text-decoration:none;font-size:10px"> Incline
              Village, Nevada 89451</span><br>
            <span style="text-decoration:none;color:red"><a style="color:red;font-size:10px" href="mailto:jim@weatherextreme.com" target="_blank">jim@weatherextreme.com</a>
              | <a style="color:red;font-size:10px" href="http://www.weatherextreme.com/vcards/James%20Means.vcf" target="_blank">vcard</a></span><br>
            <span style="text-decoration:none;font-size:10px"> <a style="color:#000000" href="http://www.weatherextreme.com/" target="_blank">www.<span style="color:red">w</span>eather<span style="color:red">e</span>xtreme.com</a></span></span></span></p>
      <a href="http://www.weatherextreme.com/" target="_blank"><img src="http://%7E/Documents/jimsignature_files/wx-logo.jpg" alt="" width="361" height="96"></a>
    </div>
  </font></span></div>

<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>