<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_<wbr>category : 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/<wbr>nclscripts/csm/gsn_code.ncl"<br>load "$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_csm.ncl"<br><br>load "$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_code.ncl"<br>load "$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_csm.ncl"<br><br>begin<br>;---Open file and read data<br>filename = "/u/Paula.Freeman/test/gfs.<wbr>t12z.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.<wbr>Freeman/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_<wbr>gcc446/OpenNDAPenabled/lib/<wbr>ncarg/grib2_codetables/ncep/4/<wbr>4.2.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="gmail-yj6qo gmail-ajU"><div id="gmail-:2la" class="gmail-ajR" tabindex="0"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><br clear="all"><br>-- <br><div class="gmail_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>
</div>