This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Eduardo,the easiest way to solve this is to make a sample file available so I can debug the problem. Also, send the table so I can use/add it.
Thanks, Robb.... On Tue, 17 Mar 2009, address@hidden wrote:
Hi Robb, I would like to thank you for your tips to update the grib-6.0.jar and my grib tables. (I intend to send it (tables) for you as soon as possible...) But, now I have a little problem to read my grib file. When I try to read it the following error message come from: ucar.grib.NoValidGribException: GDS: This scanning mode (2) is not supported.at ucar.grib.grib1.Grib1GridDefinitionSection.<init>(Grib1GridDefinitionSection.java:436)at ucar.grib.grib1.Grib1Input.scan(Grib1Input.java:155) at ucar.grib.grib1.Grib1Indexer.writeFileIndex(Grib1Indexer.java:91) at recortes.Grib.read(Grib.java:58) at recortes.Main.main(Main.java:86) That file is a model result for the global forecast and has gaussian grids to represent the latitudes. How can I proceed to read that file? May you help me with it??? Thanks in advanced! Cheers, Eduardo. Quoting Robb Kambic <address@hidden>:On Tue, 17 Mar 2009, address@hidden wrote:Does anyone could help me with the following error message? Could not find table for center:46 subcenter:0 number:-1ucar.grib.NotSupportedException: Could not find a table entry for GRIB file with center: 46 subCenter: 0 number: 128atHiya Eduardo, looking for a table for that has center: 46 subCenter: 0 number: 128ucar.grib.grib1.GribPDSParamTable.getParameterTable(GribPDSParamTable.java:278)at ucar.grib.grib1.Grib1ProductDefinitionSection.<init>(Grib1ProductDefinitionSection.java:388)at ucar.grib.grib1.Grib1Input.scan(Grib1Input.java:146) at ucar.grib.grib1.Grib1Indexer.writeFileIndex(Grib1Indexer.java:91) at recortes.Grib.read(Grib.java:58) at recortes.Main.main(Main.java:86) What does it mean???I tried to update the "grib-6.0.jar" file including my tables and using that command (Windows OS):ok, the commands to update the jars are very particular about paths and names. look at the jar using % jar tvf grib-6.0.jar resources/grib/tables/tablelookup.lstlib> jar -uf grib-6.0.jar ..\resourses\grib\tables\mytable128.tab ..\resourses\grib\tables\tableslookup.lstso the command should look like: % jar -uf grib-6.0.jar resourses\grib\tables\inpegrib_glb.tab resourses\grib\tables\tableslookup.lst according to what you named the table below. after you are done look at the jar again with the tvf flags.The table required (number 128) starts like it: -1:46:-1:128 001:PRES :Pressure Pa 002:PMSL :Pressure reduced to MSL Pa 003:PTND :Pressure tendency Pa s**-1 004:PVOR :Potential vorticity Km**2 kg**-1 s**-1 ...your table format needs to be changed to the standard NWS format of: 3:PTEND:Pressure tendency [Pa/s] If you send me the the table, I'll add it into the list of tables and you will not have to go through this process again in later releases., and in the "tableslookup.lst" I have: ... 38: 0: 2: beijing_v2.tab 46: 0: 128: inpegrib_glb.tab 54: 0: 2: cmcgem_2.tab ...this is correct. Looks like only a few minor mistakes. Let me know if you run into any problems. Robb....Thanks in advanced! Cheers, Eduardo. -- _______________________________________________ decoders mailing list address@hiddenFor list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/=============================================================================== Robb Kambic Unidata Program CenterSoftware Engineer III Univ. Corp for Atmospheric Researchaddress@hidden WWW: http://www.unidata.ucar.edu/ ===============================================================================
=============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research address@hidden WWW: http://www.unidata.ucar.edu/ ===============================================================================