<div dir="ltr"><div class="gmail_default" style="font-size:small">Dear Anthony,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In the future, please post your NCL questions to <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The ncarg-talk email list is for the older NCAR Graphics C/Fortran interface, and is not very active.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Even though you are getting errors from opening the GRIB file, you might still be able to access the variables in it.  </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">However, you need to check the names because they may not be called &quot;HGT_6_SFC&quot; or &quot;<span style="font-size:12.8px">NCPCP_6_SFC_acc&quot;, etc.</span></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I suggest doing an ncl_filedump on the file first to see what the variables look like. From a terminal window, type:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">  ncl_filedump <span style="font-size:12.8px">gfs_3_20160814_0000_003.grb</span></font></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">Or you can insert a &quot;print&quot; command in your script after you open the file:</span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"><span style="font-size:12.8px">  grib_file  = addfile(&quot;gfs_3_20160814_0000_</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">003.grb&quot;,&quot;r&quot;)  ; Open GRIB file to read<br></span>  print(grib_file)     ; this is similar to doing an &quot;ncl_filedump&quot;</font></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You can also retrieve all the variable names on the file with:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">  var_names = getfilevarnames(grib_file)</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">  print(var_names)</font></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">We would like to check the GRIB file to see if we can fix the warnings.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Can you tell me where I can download it from?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 21, 2016 at 6:46 PM, Anthony Larosa <span dir="ltr">&lt;<a href="mailto:larosaant94@gmail.com" target="_blank">larosaant94@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Good day all,<br><br></div>Just downloaded an archived GFS data file from NOMADS. <br><br>gfs_3_20160814_0000_003.grb<br><br><br><br></div>Now I convert it to a NetCDF file by the following command:<br><br>~/nclDnS/datasets$ ncl_convert2nc gfs_3_20160814_0000_003.grb<br><br></div>It does its thing and works, good now I want to practice with it. Therefore I use a script from the FAQ question section:<br><br>begin<br>  grib_file  = addfile(&quot;gfs_3_20160814_0000_<wbr>003.grb&quot;,&quot;r&quot;)  ; Open GRIB file to read<br>  ncfile_out = addfile(&quot;<a href="http://data.nc" target="_blank">data.nc</a>&quot;,&quot;c&quot;)        <wbr>     ; Open NetCDF file to write<br><br>; Write some data to NetCDF file.<br>  ncfile_out-&gt;HGT   = grib_file-&gt;HGT_6_SFC <br>  ncfile_out-&gt;A_PCP = grib_file-&gt;A_PCP_6_SFC_acc<br>  ncfile_out-&gt;NCPCP = grib_file-&gt;NCPCP_6_SFC_acc<br>  ncfile_out-&gt;ACPCP = grib_file-&gt;ACPCP_6_SFC_acc<br>  ncfile_out-&gt;CAPE  = grib_file-&gt;CAPE_6_SFC<br>end<br><br></div>ERROR//<br><br><div><br> <br> Copyright (C) 1995-2015 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.3.0<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>warning:NclGRIB: Unrecognized parameter table (center 7, subcenter 0, table 255), defaulting to NCEP operational table: variable names and units may be incorrect<br>warning:NclGRIB: Unknown grib parameter number detected (255, center 7, table version 255 grib record 3), using default variable name (VAR_255)<br>warning:NclGRIB: Unknown grib parameter number detected (191, center 7, table version 133 grib record 308), using default variable name (VAR_191)<br>fatal:[&quot;Execute.c&quot;:6332]:<wbr>variable (HGT_6_SFC) is not in file (grib_file)<br>fatal:[&quot;Execute.c&quot;:8575]:<wbr>Execute: Error occurred at or near line 7 in file writegrib.ncl<br><br><br></div></div>
<br>______________________________<wbr>_________________<br>
ncarg-talk mailing list<br>
<a href="mailto:ncarg-talk@ucar.edu">ncarg-talk@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncarg-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncarg-talk</a><br>
<br></blockquote></div><br></div>