<div dir="ltr"><div><div>NCL 6.1.0 was released in 2012. Way out of date.<br><br></div><div>GRIB is a moving target  :-(<br></div><div><br></div>The current version is NCL 6.4.0.<br></div>NCL 6.5.0 will be released this month.<br><br>Versions 6.3.0, 6.4.0 and 6.5.0-beta read the file just fine. See attached dump.<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 2, 2018 at 10:23 AM, Paula Freeman - NOAA Affiliate <span dir="ltr"><<a href="mailto:paula.freeman@noaa.gov" target="_blank">paula.freeman@noaa.gov</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">Hello,<br><div><br>I am a complete newbie to NCL, I am grateful for any help you can provide.<br><br>I am trying to plot the accumulated 6-hr precip from a 1-degee GFS GRIB2  file.<br><br></div>ncl_filedump lists the grid I want as APCP_P8_L1_GLL0_acc6h:<br><br><div style="margin-left:40px">$ ncl_filedump gfs.t12z.pgrb2.1p00.f012.grib2<br><...><br>      float APCP_P8_L1_GLL0_acc6h ( lat_0, lon_0 )<br>         center :       US National Weather Service - NCEP (WMC)<br>         production_status :    Operational products<br>         long_name :    Total precipitation<br>         units :        kg m-2<br>         _FillValue :   1e+20<br>         grid_type :    Latitude/longitude<br>         parameter_discipline_and_categ<wbr>ory :    Meteorological products, Moisture<br>         parameter_template_discipline_<wbr>category_number :        ( 8, 0, 1, 8 )<br>         level_type :   Ground or water surface<br>         level :         0<br>         type_of_statistical_processing :       Accumulation<br>         statistical_process_duration : 6 hours (ending at forecast time)<br>         forecast_time :        12<br>         forecast_time_units :  hours<br>         initial_time : 06/25/2018 (12:00)<br></div><div><div style="margin-left:40px"><br></div></div><div>Here's my simple script:<br><br><div style="margin-left:40px">load "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/gsn_code.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/gsn_csm.ncl"<br><br>load "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/gsn_code.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/gsn_csm.ncl"<br><br>begin<br>;---Open file and read data<br>filename = "/u/Paula.Freeman/test/gfs.t12<wbr>z.pgrb2.1p00.f012.grib2"<br>a = addfile(filename,"r")<br>p = a->APCP_P8_L1_GLL0_acc6h<br><br>;---Start the graphics<br>wks = gsn_open_wks("png","/u/Paula.F<wbr>reeman/test/gfs_f012_precip")<br><br>;---Set some resources<br>res                   = True<br>res@cnFillOn          = True     ; turn on color fill<br>res@gsnMaximize       = True     ; maximize plot in frame<br><br>plot = gsn_csm_contour_map(wks,p,res)<br>end<br></div><div style="margin-left:40px"><br></div>I get the following error:<br></div><div><br></div><div style="margin-left:40px">$ ncl gfs_precip_p06.ncl<br> Copyright (C) 1995-2012 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.1.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: Entry (21) not found in code table file /usrx/local/NCL_NCARG-6.1.0_gc<wbr>c446/OpenNDAPenabled/lib/ncarg<wbr>/grib2_codetables/ncep/4/4.2.<wbr>0.0.table<br></div><br><div>When I look at the table listed above, there is no entry for 21, just this placeholder:<br><br clear="all"></div><div><div style="margin-left:40px">  # 21-191:21-191:Reserved:-:<br>  # 192-254:192-254:Reserved for Local Use:-:<br></div><br></div><div>So it appears that these tables are not updated for NCEP's local variables.<br><br></div><div>How can I direct NCL to an updated version of the tables?  My local GRIB2 expert has pointed me to a local copy.<br><br></div><div>I am running this script on the WCOSS at NCEP: <br><br>    $ uname -a<br>    Linux g14a1 2.6.32-573.48.1.el6.x86_64 #1 SMP Thu Sep 21 11:19:32 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux<br><br></div><div>Thanks,<br></div>Paula Freeman<div class="m_7500402120441749465gmail-yj6qo m_7500402120441749465gmail-ajU"><div id="m_7500402120441749465gmail-:2la" class="m_7500402120441749465gmail-ajR"><img class="m_7500402120441749465gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><span class="HOEnZb"><font color="#888888"><br clear="all"><br>-- <br><div class="m_7500402120441749465gmail_signature"><div dir="ltr"><div><div dir="ltr"><span><font color="#888888"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Paula Freeman<br></div><div>Software Developer<br></div><div><font face="tahoma, sans-serif">Cyberdata Technologies, Inc.<br></font></div><div><font face="tahoma, sans-serif">NOAA/NWS/NCEP/NCO</font></div><div><font face="tahoma, sans-serif">NCWCP, Cube 1034<br></font></div><div><font face="tahoma, sans-serif">Onsite: (301) 683-<font color="#888888">3837<br></font></font></div><div><font face="tahoma, sans-serif"><font color="#888888">Teleworking: (301)283-3596<br></font></font></div><div><font face="tahoma, sans-serif"><font color="#888888">Cell: (202)709-1537<br></font></font></div><div><font face="tahoma, sans-serif"><font color="#888888">Paula.Freeman</font>@<a href="http://noaa.gov" target="_blank">noaa.gov</a></font></div></div></div></div></div></div></div></font></span></div></div></div></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>