<div dir="ltr"><div>GRIB is a bit of a moving target. <br></div><div><br></div><div>+ GRIB is a record format *not* a file format. Unlike, (say) netCDF/HDF there are no rules for creating a collection of GRIB records.  In fact, individual randomly created GRIB records can be collected together and called a 'GRIB file'  <br></div><div>+ GRIB uses  external tables to describe the meaning of the data. <br></div><div>+ Parameter identification is via an 'id number'. Parameter 'id numbers' 0-127 are defined by the WMO. Other 'id numbers'  are defined by the center creating the GRIB. <br></div><div>+ The WMO does not provide links to the external tables  created by various centers. <br></div><div><br></div><div>For example:  <a href="https://apps.ecmwf.int/codes/grib/param-db"><b>ECMWF's GRIB parameter table</b></a></div><div><br></div><div>As a result, a tool like NCL must update internal GRIB tables for different centers. Historically, these were done for each new NCL release.</div><div><br></div><div>That said ....</div><div><br></div><div><b>NCL will correctly unpack the records</b>.   The information like the appropriate variable name and units may be missing.</div><div><br></div><div>The following indicates that parameter ids 224, 228 and 238 were not in the 6.4 table associated with the creating center..</div><div><br></div><div><p style="margin:0px">warning: Entry (224) not found in code table file /app/ncl/lib/ncarg/grib2_codetables/ncep/4/4.2.0.0.table</p><p style="margin:0px">warning: Entry (228) not found in code table file /app/ncl/lib/ncarg/grib2_codetables/ncep/4/4.2.0.1.table</p><p style="margin:0px">warning: Entry (238) not found in code table file /app/ncl/lib/ncarg/grib2_codetables/ncep/4/4.2.0.1.table</p><p style="margin:0px"><br></p><p style="margin:0px">If you could find the appropriate table for the center that created the file you could manually change it via something loke</p><p style="margin:0px"><br></p><p style="margin:0px">    f = addfile("FOO.grb","r")</p><p style="margin:0px">    x = f->"variable 224"             ; I do not know how the actual name of the variable returned  by NCL<br></p><p style="margin:0px">    x@long_name = "...."            ; add the long _name</p><p style="margin:0px">    x@units = "..."</p><p style="margin:0px"><br></p><p style="margin:0px"><br></p><p style="margin:0px">.....</p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 30, 2021 at 10:48 PM 宣守丽 via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><p style="margin:0px">Dear NCL experts,</p><p style="margin:0px"><br></p><p style="margin:0px">When I use NCL to read the grib2 data file or use the  provided script (<a href="http://www.ncl.ucar.edu/Applications/griball.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/griball.shtml</a>) to convert grib2 data to nc data, a series of errors show on the screen as follows:</p><p style="margin:0px">warning: Entry (224) not found in code table file /app/ncl/lib/ncarg/grib2_codetables/ncep/4/4.2.0.0.table</p><p style="margin:0px">warning: Entry (228) not found in code table file /app/ncl/lib/ncarg/grib2_codetables/ncep/4/4.2.0.1.table</p><p style="margin:0px">warning: Entry (238) not found in code table file /app/ncl/lib/ncarg/grib2_codetables/ncep/4/4.2.0.1.table</p><p style="margin:0px">......</p><p style="margin:0px"><br></p><p style="margin:0px">Using ncl_convert2nc also has the same problem. My NCL version is Version 6.4.0. Could you help me?</p><p style="margin:0px"><br></p><p style="margin:0px"><br></p><p style="margin:0px">Sincerely</p><p style="margin:0px">Shouli Xuan</p></div><br><br><span title="neteasefooter"><p><br> </p></span>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>