Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [decoders] Could not find table (fwd)





===============================================================================
Robb Kambic        			   Unidata Program Center
Software Engineer III			   Univ. Corp for Atmospheric Research
rkambic@xxxxxxxxxxxxxxxx		   WWW: http://www.unidata.ucar.edu/
===============================================================================

---------- Forwarded message ----------
Date: Fri, 20 Mar 2009 10:29:53 -0300
From: eduardo.barbosa@xxxxxxxxxxxxx
To: Robb Kambic <rkambic@xxxxxxxxxxxxxxxx>
Subject: Re: [decoders] Could not find table

Robb,
I am really grateful for your attention to assist us resolve this problem.
I sent your comments for our analysts, who will make data analyses to promote
the needed changes...

Thanks for attention!

Cheers,
Eduardo.

Quoting Robb Kambic <rkambic@xxxxxxxxxxxxxxxx>:

Eduardo,

I made the table and debugged the test data. It seems that the GDS
section is not standard, especially the number of parellels is way out
of
the proper range and then the scanning mode value is probably wrong
too. According to ECMWF documentation, the max number of parellels is
800.  If the data is standard format then I can proceed in debugging.

Robb...

                           Np : 30464.0
                Scanning mode : 2


Header : GRIB1 Discipline : 0 Meteorological Products GRIB Edition : 1 GRIB length : 147540 Originating Center : 46 Brazilian Space Agency - INPE Originating Sub-Center : 0 WMO Secretariat Product Definition : 0 Forecast/Uninitialized Analysis/Image Product Parameter Category : -1 Meteorological Parameters Parameter Name : 132 TOPO Topography Parameter Units : m Reference Time : 2009-03-11T12:00:00Z Time Units : hour Time Range Indicator : product valid at RT + P1 Time 1 (P1) : 0 Time 2 (P2) : 0 Generating Process Type : 2 Ultra Violet Index Model Level Type : 1 surface Level Value 1 : 0.0 Level Value 2 : 0.0 GDS Exists : true BMS Exists : false Number of data points : 73728 Grid Name : Gaussian Latitude/Longitude Grid Shape: 0 spherical Spherical earth radius: 6367.47 Nx : 384 Ny : 192 La1 : -89.284 Lo1 : 0.0 Resolution & Component flags : 128 Winds : True La2 : 89.284 Lo2 : 359.063 Dx : 0.938 Np : 30464.0 Scanning mode : 2





On Tue, 17 Mar 2009, eduardo.barbosa@xxxxxxxxxxxxx wrote:

Robb,
there are samples (grib files) and the grib table to access them in the
following ftp address:

=> ftp://ftp1.cptec.inpe.br/eduardo/ <=

So, I still wait for response...

Thanks!

Cheers,
Eduardo.

Quoting Robb Kambic <rkambic@xxxxxxxxxxxxxxxx>:

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, eduardo.barbosa@xxxxxxxxxxxxx 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 <rkambic@xxxxxxxxxxxxxxxx>:

On Tue, 17 Mar 2009, eduardo.barbosa@xxxxxxxxxxxxx wrote:

Does anyone could help me with the following error message?

Could not find table for center:46 subcenter:0 number:-1
ucar.grib.NotSupportedException: Could not find a table entry for GRIB file with center: 46 subCenter: 0 number: 128
at

Hiya Eduardo,

looking for a table for that has center: 46 subCenter: 0 number: 128


ucar.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.lst




lib> jar -uf grib-6.0.jar ..\resourses\grib\tables\mytable128.tab ..\resourses\grib\tables\tableslookup.lst



so 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
decoders@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/

===============================================================================
Robb Kambic Unidata Program Center
Software Engineer III Univ. Corp for Atmospheric Research
rkambic@xxxxxxxxxxxxxxxx WWW: http://www.unidata.ucar.edu/
===============================================================================





===============================================================================
Robb Kambic Unidata Program Center
Software Engineer III Univ. Corp for Atmospheric Research
rkambic@xxxxxxxxxxxxxxxx WWW: http://www.unidata.ucar.edu/
===============================================================================



-- Eduardo B. M. Barbosa Systems Analyst - Database Development Group National Institute for Space Research - INPE Center for Weather Forecast and Climate Studies - CPTEC Rod Presidente Dutra, Km 40 - Cach.Pta., SP - 12630-000 Phone: +55 12 3186-8618 Fax: +55 12 3101-2835

=============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research rkambic@xxxxxxxxxxxxxxxx WWW: http://www.unidata.ucar.edu/ ===============================================================================



-- Eduardo B. M. Barbosa Systems Analyst - Database Development Group National Institute for Space Research - INPE Center for Weather Forecast and Climate Studies - CPTEC Rod Presidente Dutra, Km 40 - Cach.Pta., SP - 12630-000 Phone: +55 12 3186-8618 Fax: +55 12 3101-2835


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690