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

Re: 20050414: IDV - Error reading GRIB file



On Thu, 12 May 2005, Dave Santek wrote:

> The gribsimp program is part of the MEL package:
>
> https://mel.dmso.mil/mel_tools/grib.jsp
>

thanks for the info.


> I wonder if using 'cat' to glue them together is the problem. Do you
> know which grid is bad [or the one before?]. I think the 43rd grid is a
> 400mb temperature....
>

i don't thing so at looking at the index file. i'll attach the index file,
the 4th column is the parm #, next level indication, level, etc. i'll also
send a file explaning the index itself.

robb...


> dave
>
> Robb Kambic wrote:
>
> > On Tue, 10 May 2005, Dave Santek wrote:
> >
> >
> >>Hi Robb,
> >>
> >>Don got back to me with this:
> >>
> >>"Thanks for the report. We'll look into this and get back to you.
> >>It's great to have users fully exercise the GRIB stuff in ways that
> >>we don't normally do this. "
> >>
> >>but, I haven't heard from him since [at least I don't have a record of it].
> >>
> >>I put the file back at:
> >>
> >>ftp://ftp.ssec.wisc.edu/pub/incoming/grib.test
> >>
> >
> >
> > i got the file and ran some test on it. the problem was record 43 was
> > somewhat corrupt, length was wrong in the PDS section of the file. this
> > cause my code to barf, so i added a check for the length of the PDS
> > section and to skip that record if it didn't match amount of data read.
> > next release you should be able to read these type of files.
> >
> >
> > could you point me to the utility that you used to split the file into
> > individual records? is this utility widely used?
> >
> > robb...
> >
> >
> >
> >
> >
> >
> >>it will only stay there for a week....
> >>
> >>Thanx!
> >>dave
> >>
> >>Robb Kambic wrote:
> >>
> >>
> >>>dave,
> >>>
> >>>did you every get back a response to your question?  i was cleaning out my
> >>>mail box and i saw you message.  also, i tried to download you grib.test
> >>>file but could not locate it.
> >>>
> >>>robb...
> >>>
> >>>
> >>>
> >>>
> >>>On Thu, 14 Apr 2005, Unidata Support wrote:
> >>>
> >>>
> >>>
> >>>>>To: address@hidden
> >>>>>From: "Dave Santek" <address@hidden>
> >>>>>Subject: IDV - Error reading GRIB file
> >>>>>Organization: SSEC
> >>>>>Keywords: 200504140356.j3E3ujJ9004059
> >>>>
> >>>>Institution: SSEC
> >>>>Package Version: 1.2b2
> >>>>Operating System: os.name:Windows XP; os.arch:x86; os.version:5.1;
> >>>>Hardware Information: java.vendor:Sun Microsystems Inc.; 
> >>>>java.version:1.4.2_01; java.home:C:\\Program Files\\IDV_1.2a2\\jre;
> >>>>Inquiry: Hi,
> >>>>
> >>>>I pasted in the entire error message below. I'm trying to read a GRIB 
> >>>>file that contains
> >>>>300 grids from 2 or 3 forecasts times. I created this file by using 
> >>>>gribsimp to break a
> >>>>GRIB file into separate files, then using 'cat' to concatenate the ones I 
> >>>>want into a
> >>>>single file. I was able to do this with some other files that contained 
> >>>>only one
> >>>>forecast time [although it was output from a different model]. But, now I 
> >>>>want to
> >>>>get a time sequence together. Is it the multiple times causing the 
> >>>>problem?
> >>>>
> >>>>If you're interested in looking at the GRIB file, it's at:
> >>>>
> >>>>ftp://ftp.ssec.wisc.edu/pub/incoming/grib.test
> >>>>
> >>>>Thanks!
> >>>>dave
> >>>>
> >>>>An error has occurred:
> >>>>There was an error loading the data:
> >>>>
> >>>>java.lang.NegativeArraySizeException
> >>>>  at 
> >>>> ucar.grib.grib1.Grib1GridDefinitionSection.<init>(Grib1GridDefinitionSection.java:160)
> >>>>  at ucar.grib.grib1.Grib1Input.scan(Grib1Input.java:92)
> >>>>  at ucar.grib.grib1.Grib1Indexer.writeFileIndex(Grib1Indexer.java:74)
> >>>>  at 
> >>>> ucar.nc2.iosp.grib.GribServiceProvider.writeIndex(GribServiceProvider.java:91)
> >>>>  at 
> >>>> ucar.nc2.iosp.grib.GribServiceProvider.getIndex(GribServiceProvider.java:68)
> >>>>  at 
> >>>> ucar.nc2.iosp.grib.Grib1ServiceProvider.open(Grib1ServiceProvider.java:69)
> >>>>  at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:640)
> >>>>  at ucar.nc2.NetcdfFile.open(NetcdfFile.java:258)
> >>>>  at ucar.nc2.NetcdfFile.open(NetcdfFile.java:207)
> >>>>  at ucar.nc2.dataset.NetcdfDataset.openFile(NetcdfDataset.java:227)
> >>>>  at ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:125)
> >>>>  at ucar.nc2.dataset.grid.GridDataset.open(GridDataset.java:65)
> >>>>  at ucar.nc2.dataset.grid.GridDataset.factory(GridDataset.java:74)
> >>>>  at 
> >>>> ucar.unidata.data.grid.GeoGridDataSource.doMakeDataSet(GeoGridDataSource.java:266)
> >>>>  at 
> >>>> ucar.unidata.data.grid.GeoGridDataSource.getDataset(GeoGridDataSource.java:283)
> >>>>  at 
> >>>> ucar.unidata.data.grid.GeoGridDataSource.doMakeDataChoices(GeoGridDataSource.java:297)
> >>>>  at 
> >>>> ucar.unidata.data.DataSourceImpl.getDataChoices(DataSourceImpl.java:958)
> >>>>  at ucar.unidata.data.DataManager.createDataSource(DataManager.java:842)
> >>>>  at 
> >>>> ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataViewer.java:1270)
> >>>>  at 
> >>>> ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1208)
> >>>>  at 
> >>>> ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1189)
> >>>>  at 
> >>>> ucar.unidata.idv.chooser.IdvChooser.makeDataSource(IdvChooser.java:334)
> >>>>  at 
> >>>> ucar.unidata.idv.chooser.FileChooser.selectFileInner(FileChooser.java:382)
> >>>>  at ucar.unidata.idv.chooser.FileChooser.selectFile(FileChooser.java:262)
> >>>>  at ucar.unidata.idv.chooser.FileChooser.doLoad(FileChooser.java:278)
> >>>>  at ucar.unidata.ui.ChooserPanel.actionPerformed(ChooserPanel.java:130)
> >>>>  at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> >>>>  at 
> >>>> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown 
> >>>> Source)
> >>>>  at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> >>>>  at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> >>>>  at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown 
> >>>> Source)
> >>>>  at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
> >>>>  at java.awt.Component.processMouseEvent(Unknown Source)
> >>>>  at java.awt.Component.processEvent(Unknown Source)
> >>>>  at java.awt.Container.processEvent(Unknown Source)
> >>>>  at java.awt.Component.dispatchEventImpl(Unknown Source)
> >>>>  at java.awt.Container.dispatchEventImpl(Unknown Source)
> >>>>  at java.awt.Component.dispatchEvent(Unknown Source)
> >>>>  at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> >>>>  at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> >>>>  at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> >>>>  at java.awt.Container.dispatchEventImpl(Unknown Source)
> >>>>  at java.awt.Window.dispatchEventImpl(Unknown Source)
> >>>>  at java.awt.Component.dispatchEvent(Unknown Source)
> >>>>  at java.awt.EventQueue.dispatchEvent(Unknown Source)
> >>>>  at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
> >>>>  at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> >>>>  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> >>>>  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> >>>>  at java.awt.EventDispatchThread.run(Unknown Source)
> >>>>
> >>>>
> >>>>******************
> >>>>Stack trace:
> >>>>java.lang.NegativeArraySizeException
> >>>>  at 
> >>>> ucar.grib.grib1.Grib1GridDefinitionSection.<init>(Grib1GridDefinitionSection.java:160)
> >>>>  at ucar.grib.grib1.Grib1Input.scan(Grib1Input.java:92)
> >>>>  at ucar.grib.grib1.Grib1Indexer.writeFileIndex(Grib1Indexer.java:74)
> >>>>  at 
> >>>> ucar.nc2.iosp.grib.GribServiceProvider.writeIndex(GribServiceProvider.java:91)
> >>>>  at 
> >>>> ucar.nc2.iosp.grib.GribServiceProvider.getIndex(GribServiceProvider.java:68)
> >>>>  at 
> >>>> ucar.nc2.iosp.grib.Grib1ServiceProvider.open(Grib1ServiceProvider.java:69)
> >>>>  at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:640)
> >>>>  at ucar.nc2.NetcdfFile.open(NetcdfFile.java:258)
> >>>>  at ucar.nc2.NetcdfFile.open(NetcdfFile.java:207)
> >>>>  at ucar.nc2.dataset.NetcdfDataset.openFile(NetcdfDataset.java:227)
> >>>>  at ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:125)
> >>>>  at ucar.nc2.dataset.grid.GridDataset.open(GridDataset.java:65)
> >>>>  at ucar.nc2.dataset.grid.GridDataset.factory(GridDataset.java:74)
> >>>>  at 
> >>>> ucar.unidata.data.grid.GeoGridDataSource.doMakeDataSet(GeoGridDataSource.java:266)
> >>>>  at 
> >>>> ucar.unidata.data.grid.GeoGridDataSource.getDataset(GeoGridDataSource.java:283)
> >>>>  at 
> >>>> ucar.unidata.data.grid.GeoGridDataSource.doMakeDataChoices(GeoGridDataSource.java:297)
> >>>>  at 
> >>>> ucar.unidata.data.DataSourceImpl.getDataChoices(DataSourceImpl.java:958)
> >>>>  at ucar.unidata.data.DataManager.createDataSource(DataManager.java:842)
> >>>>  at 
> >>>> ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataViewer.java:1270)
> >>>>  at 
> >>>> ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1208)
> >>>>  at 
> >>>> ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1189)
> >>>>  at 
> >>>> ucar.unidata.idv.chooser.IdvChooser.makeDataSource(IdvChooser.java:334)
> >>>>  at 
> >>>> ucar.unidata.idv.chooser.FileChooser.selectFileInner(FileChooser.java:382)
> >>>>  at ucar.unidata.idv.chooser.FileChooser.selectFile(FileChooser.java:262)
> >>>>  at ucar.unidata.idv.chooser.FileChooser.doLoad(FileChooser.java:278)
> >>>>  at ucar.unidata.ui.ChooserPanel.actionPerformed(ChooserPanel.java:130)
> >>>>  at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> >>>>  at 
> >>>> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown 
> >>>> Source)
> >>>>  at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> >>>>  at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> >>>>  at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown 
> >>>> Source)
> >>>>  at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
> >>>>  at java.awt.Component.processMouseEvent(Unknown Source)
> >>>>  at java.awt.Component.processEvent(Unknown Source)
> >>>>  at java.awt.Container.processEvent(Unknown Source)
> >>>>  at java.awt.Component.dispatchEventImpl(Unknown Source)
> >>>>  at java.awt.Container.dispatchEventImpl(Unknown Source)
> >>>>  at java.awt.Component.dispatchEvent(Unknown Source)
> >>>>  at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> >>>>  at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> >>>>  at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> >>>>  at java.awt.Container.dispatchEventImpl(Unknown Source)
> >>>>  at java.awt.Window.dispatchEventImpl(Unknown Source)
> >>>>  at java.awt.Component.dispatchEvent(Unknown Source)
> >>>>  at java.awt.EventQueue.dispatchEvent(Unknown Source)
> >>>>  at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
> >>>>  at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> >>>>  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> >>>>  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> >>>>  at java.awt.EventDispatchThread.run(Unknown Source)
> >>>>
> >>>>
> >>>>
> >>>>NOTE: All email exchanges with Unidata User Support are recorded in the
> >>>>Unidata inquiry tracking system and then made publicly available
> >>>>through the web.  If you do not want to have your interactions made
> >>>>available in this way, you must let us know in each email you send to us.
> >>>>
> >>>
> >>>
> >>>===============================================================================
> >>>Robb Kambic                                   Unidata Program Center
> >>>Software Engineer III                         Univ. Corp for Atmospheric 
> >>>Research
> >>>address@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/
> > ===============================================================================
>

===============================================================================
Robb Kambic                                Unidata Program Center
Software Engineer III                      Univ. Corp for Atmospheric Research
address@hidden             WWW: http://www.unidata.ucar.edu/
===============================================================================
index_version = 1.1
grid_edition = 1
location = /home/rkambic/code/grib/data/grib.test
created = 2005-05-11T19:57:11Z
version = 1.0
center = 7
sub_center = 0
table_version = 2
tiles = 1
thin = false
ensemble = false
--------------------------------------------------------------------
10 0 -1 11 105 2 255 0 2005-04-13T18:00:00Z 0 360830503 68 89606 1 false
10 0 -1 52 105 2 255 0 2005-04-13T18:00:00Z 0 360830503 89746 57026 0 false
10 0 -1 11 100 10 255 0 2005-04-13T18:00:00Z 0 360830503 146844 73316 1 false
10 0 -1 7 100 10 255 0 2005-04-13T18:00:00Z 0 360830503 220232 122186 1 false
10 0 -1 33 105 10 255 0 2005-04-13T18:00:00Z 0 360830503 342490 73316 1 false
10 0 -1 34 105 10 255 0 2005-04-13T18:00:00Z 0 360830503 415878 73316 1 false
10 0 -1 11 100 20 255 0 2005-04-13T18:00:00Z 0 360830503 489266 73316 1 false
10 0 -1 7 100 20 255 0 2005-04-13T18:00:00Z 0 360830503 562654 122186 1 false
10 0 -1 33 100 20 255 0 2005-04-13T18:00:00Z 0 360830503 684912 81462 1 false
10 0 -1 34 100 20 255 0 2005-04-13T18:00:00Z 0 360830503 766446 73316 1 false
10 0 -1 11 100 30 255 0 2005-04-13T18:00:00Z 0 360830503 839834 73316 1 false
10 0 -1 7 100 30 255 0 2005-04-13T18:00:00Z 0 360830503 913222 114042 1 false
10 0 -1 33 100 30 255 0 2005-04-13T18:00:00Z 0 360830503 1027336 81462 1 false
10 0 -1 34 100 30 255 0 2005-04-13T18:00:00Z 0 360830503 1108870 73316 1 false
10 0 -1 11 100 50 255 0 2005-04-13T18:00:00Z 0 360830503 1182258 73316 1 false
10 0 -1 7 100 50 255 0 2005-04-13T18:00:00Z 0 360830503 1255646 114042 1 false
10 0 -1 33 100 50 255 0 2005-04-13T18:00:00Z 0 360830503 1369760 81462 1 false
10 0 -1 34 100 50 255 0 2005-04-13T18:00:00Z 0 360830503 1451294 73316 1 false
10 0 -1 11 100 70 255 0 2005-04-13T18:00:00Z 0 360830503 1524682 73316 1 false
10 0 -1 7 100 70 255 0 2005-04-13T18:00:00Z 0 360830503 1598070 114042 1 false
10 0 -1 33 100 70 255 0 2005-04-13T18:00:00Z 0 360830503 1712184 81462 1 false
10 0 -1 34 100 70 255 0 2005-04-13T18:00:00Z 0 360830503 1793718 73316 1 false
10 0 -1 11 100 100 255 0 2005-04-13T18:00:00Z 0 360830503 1867106 73316 1 false
10 0 -1 7 100 100 255 0 2005-04-13T18:00:00Z 0 360830503 1940494 122186 1 false
10 0 -1 52 100 100 255 0 2005-04-13T18:00:00Z 0 360830503 2062752 57026 0 false
10 0 -1 33 100 100 255 0 2005-04-13T18:00:00Z 0 360830503 2119850 81462 1 false
10 0 -1 34 100 100 255 0 2005-04-13T18:00:00Z 0 360830503 2201384 73316 1 false
10 0 -1 11 100 150 255 0 2005-04-13T18:00:00Z 0 360830503 2274772 73316 1 false
10 0 -1 7 100 150 255 0 2005-04-13T18:00:00Z 0 360830503 2348160 122186 1 false
10 0 -1 52 100 150 255 0 2005-04-13T18:00:00Z 0 360830503 2470418 57026 0 false
10 0 -1 33 100 150 255 0 2005-04-13T18:00:00Z 0 360830503 2527516 81462 1 false
10 0 -1 34 100 150 255 0 2005-04-13T18:00:00Z 0 360830503 2609050 81462 1 false
10 0 -1 11 100 200 255 0 2005-04-13T18:00:00Z 0 360830503 2690584 73316 1 false
10 0 -1 7 100 200 255 0 2005-04-13T18:00:00Z 0 360830503 2763972 122186 1 false
10 0 -1 52 100 200 255 0 2005-04-13T18:00:00Z 0 360830503 2886230 57026 0 false
10 0 -1 33 100 200 255 0 2005-04-13T18:00:00Z 0 360830503 2943328 89606 1 false
10 0 -1 34 100 200 255 0 2005-04-13T18:00:00Z 0 360830503 3033006 81462 1 false
10 0 -1 11 100 250 255 0 2005-04-13T18:00:00Z 0 360830503 3114540 73316 1 false
10 0 -1 7 100 250 255 0 2005-04-13T18:00:00Z 0 360830503 3187928 122186 1 false
10 0 -1 52 100 250 255 0 2005-04-13T18:00:00Z 0 360830503 3310186 57026 0 false
10 0 -1 33 100 250 255 0 2005-04-13T18:00:00Z 0 360830503 3367284 89606 1 false
10 0 -1 34 100 250 255 0 2005-04-13T18:00:00Z 0 360830503 3456962 89606 1 false
10 0 -1 11 100 300 255 0 2005-04-13T18:00:00Z 0 360830503 3546640 73316 1 false
10 0 -1 7 100 300 255 0 2005-04-13T18:00:00Z 0 360830503 3701600 122186 1 false
10 0 -1 52 100 300 255 0 2005-04-13T18:00:00Z 0 360830503 3823858 57026 0 false
10 0 -1 33 100 300 255 0 2005-04-13T18:00:00Z 0 360830503 3880956 89606 1 false
10 0 -1 34 100 300 255 0 2005-04-13T18:00:00Z 0 360830503 3970634 89606 1 false
10 0 -1 11 100 350 255 0 2005-04-13T18:00:00Z 0 360830503 4060312 73316 1 false
10 0 -1 7 100 350 255 0 2005-04-13T18:00:00Z 0 360830503 4133700 114042 1 false
10 0 -1 52 100 350 255 0 2005-04-13T18:00:00Z 0 360830503 4247814 57026 0 false
10 0 -1 33 100 350 255 0 2005-04-13T18:00:00Z 0 360830503 4304912 89606 1 false
10 0 -1 34 100 350 255 0 2005-04-13T18:00:00Z 0 360830503 4394590 89606 1 false
10 0 -1 11 100 400 255 0 2005-04-13T18:00:00Z 0 360830503 4484268 73316 1 false
10 0 -1 7 100 400 255 0 2005-04-13T18:00:00Z 0 360830503 4639228 114042 1 false
10 0 -1 52 100 400 255 0 2005-04-13T18:00:00Z 0 360830503 4753342 57026 0 false
10 0 -1 33 100 400 255 0 2005-04-13T18:00:00Z 0 360830503 4810440 89606 1 false
10 0 -1 34 100 400 255 0 2005-04-13T18:00:00Z 0 360830503 4900118 89606 1 false
10 0 -1 11 100 450 255 0 2005-04-13T18:00:00Z 0 360830503 4989796 73316 1 false
10 0 -1 7 100 450 255 0 2005-04-13T18:00:00Z 0 360830503 5063184 114042 1 false
10 0 -1 52 100 450 255 0 2005-04-13T18:00:00Z 0 360830503 5177298 57026 0 false
10 0 -1 33 100 450 255 0 2005-04-13T18:00:00Z 0 360830503 5234396 81462 1 false
10 0 -1 34 100 450 255 0 2005-04-13T18:00:00Z 0 360830503 5315930 81462 1 false
10 0 -1 11 100 500 255 0 2005-04-13T18:00:00Z 0 360830503 5397464 73316 1 false
10 0 -1 7 100 500 255 0 2005-04-13T18:00:00Z 0 360830503 5552424 114042 1 false
10 0 -1 52 100 500 255 0 2005-04-13T18:00:00Z 0 360830503 5666538 57026 0 false
10 0 -1 33 100 500 255 0 2005-04-13T18:00:00Z 0 360830503 5723636 81462 1 false
10 0 -1 34 100 500 255 0 2005-04-13T18:00:00Z 0 360830503 5805170 81462 1 false
10 0 -1 11 100 550 255 0 2005-04-13T18:00:00Z 0 360830503 5886704 81462 1 false
10 0 -1 7 100 550 255 0 2005-04-13T18:00:00Z 0 360830503 5968238 114042 1 false
10 0 -1 52 100 550 255 0 2005-04-13T18:00:00Z 0 360830503 6082352 57026 0 false
10 0 -1 33 100 550 255 0 2005-04-13T18:00:00Z 0 360830503 6139450 81462 1 false
10 0 -1 34 100 550 255 0 2005-04-13T18:00:00Z 0 360830503 6220984 81462 1 false
10 0 -1 11 100 600 255 0 2005-04-13T18:00:00Z 0 360830503 6302518 81462 1 false
10 0 -1 7 100 600 255 0 2005-04-13T18:00:00Z 0 360830503 6384052 114042 1 false
10 0 -1 52 100 600 255 0 2005-04-13T18:00:00Z 0 360830503 6498166 57026 0 false
10 0 -1 33 100 600 255 0 2005-04-13T18:00:00Z 0 360830503 6555264 81462 1 false
10 0 -1 34 100 600 255 0 2005-04-13T18:00:00Z 0 360830503 6636798 81462 1 false
10 0 -1 11 100 650 255 0 2005-04-13T18:00:00Z 0 360830503 6718332 81462 1 false
10 0 -1 7 100 650 255 0 2005-04-13T18:00:00Z 0 360830503 6799866 114042 1 false
10 0 -1 52 100 650 255 0 2005-04-13T18:00:00Z 0 360830503 6913980 57026 0 false
10 0 -1 33 100 650 255 0 2005-04-13T18:00:00Z 0 360830503 6971078 81462 1 false
10 0 -1 34 100 650 255 0 2005-04-13T18:00:00Z 0 360830503 7052612 81462 1 false
10 0 -1 11 100 700 255 0 2005-04-13T18:00:00Z 0 360830503 7134146 81462 1 false
10 0 -1 7 100 700 255 0 2005-04-13T18:00:00Z 0 360830503 7297252 114042 1 false
10 0 -1 52 100 700 255 0 2005-04-13T18:00:00Z 0 360830503 7411366 57026 0 false
10 0 -1 33 100 700 255 0 2005-04-13T18:00:00Z 0 360830503 7468464 81462 1 false
10 0 -1 34 100 700 255 0 2005-04-13T18:00:00Z 0 360830503 7549998 81462 1 false
10 0 -1 11 100 750 255 0 2005-04-13T18:00:00Z 0 360830503 7631532 81462 1 false
10 0 -1 7 100 750 255 0 2005-04-13T18:00:00Z 0 360830503 7713066 114042 1 false
10 0 -1 52 100 750 255 0 2005-04-13T18:00:00Z 0 360830503 7827180 57026 0 false
10 0 -1 33 100 750 255 0 2005-04-13T18:00:00Z 0 360830503 7884278 81462 1 false
10 0 -1 34 100 750 255 0 2005-04-13T18:00:00Z 0 360830503 7965812 81462 1 false
10 0 -1 11 100 800 255 0 2005-04-13T18:00:00Z 0 360830503 8047346 81462 1 false
10 0 -1 7 100 800 255 0 2005-04-13T18:00:00Z 0 360830503 8128880 105896 1 false
10 0 -1 52 100 800 255 0 2005-04-13T18:00:00Z 0 360830503 8234848 57026 0 false
10 0 -1 33 100 800 255 0 2005-04-13T18:00:00Z 0 360830503 8291946 81462 1 false
10 0 -1 34 100 800 255 0 2005-04-13T18:00:00Z 0 360830503 8373480 81462 1 false
10 0 -1 11 100 850 255 0 2005-04-13T18:00:00Z 0 360830503 8455014 81462 1 false
10 0 -1 7 100 850 255 0 2005-04-13T18:00:00Z 0 360830503 8618120 105896 1 false
10 0 -1 52 100 850 255 0 2005-04-13T18:00:00Z 0 360830503 8724088 57026 0 false
10 0 -1 33 100 850 255 0 2005-04-13T18:00:00Z 0 360830503 8781186 81462 1 false
10 0 -1 34 100 850 255 0 2005-04-13T18:00:00Z 0 360830503 8862720 81462 1 false
10 0 -1 11 100 900 255 0 2005-04-13T18:00:00Z 0 360830503 8944254 81462 1 false
10 0 -1 7 100 900 255 0 2005-04-13T18:00:00Z 0 360830503 9025788 105896 1 false
10 0 -1 52 100 900 255 0 2005-04-13T18:00:00Z 0 360830503 9131756 57026 0 false
10 0 -1 33 100 900 255 0 2005-04-13T18:00:00Z 0 360830503 9188854 81462 1 false
10 0 -1 34 100 900 255 0 2005-04-13T18:00:00Z 0 360830503 9270388 81462 1 false
10 0 -1 11 100 925 255 0 2005-04-13T18:00:00Z 0 360830503 9351922 81462 1 false
10 0 -1 7 100 925 255 0 2005-04-13T18:00:00Z 0 360830503 9515028 105896 1 false
10 0 -1 52 100 925 255 0 2005-04-13T18:00:00Z 0 360830503 9620996 57026 0 false
10 0 -1 33 100 925 255 0 2005-04-13T18:00:00Z 0 360830503 9678094 81462 1 false
10 0 -1 34 100 925 255 0 2005-04-13T18:00:00Z 0 360830503 9759628 81462 1 false
10 0 -1 11 100 950 255 0 2005-04-13T18:00:00Z 0 360830503 9841162 81462 1 false
10 0 -1 7 100 950 255 0 2005-04-13T18:00:00Z 0 360830503 9922696 105896 1 false
10 0 -1 52 100 950 255 0 2005-04-13T18:00:00Z 0 360830503 10028664 57026 0 false
10 0 -1 33 100 950 255 0 2005-04-13T18:00:00Z 0 360830503 10085762 81462 1 false
10 0 -1 34 100 950 255 0 2005-04-13T18:00:00Z 0 360830503 10167296 81462 1 false
10 0 -1 11 100 975 255 0 2005-04-13T18:00:00Z 0 360830503 10248830 81462 1 false
10 0 -1 7 100 975 255 0 2005-04-13T18:00:00Z 0 360830503 10330364 105896 1 false
10 0 -1 52 100 975 255 0 2005-04-13T18:00:00Z 0 360830503 10436332 57026 0 false
10 0 -1 33 100 975 255 0 2005-04-13T18:00:00Z 0 360830503 10493430 81462 1 false
10 0 -1 34 100 975 255 0 2005-04-13T18:00:00Z 0 360830503 10574964 81462 1 false
10 0 -1 11 100 1000 255 0 2005-04-13T18:00:00Z 0 360830503 10656498 81462 1 
false
10 0 -1 7 100 1000 255 0 2005-04-13T18:00:00Z 0 360830503 10819604 105896 1 
false
10 0 -1 52 100 1000 255 0 2005-04-13T18:00:00Z 0 360830503 10925572 57026 0 
false
10 0 -1 33 100 1000 255 0 2005-04-13T18:00:00Z 0 360830503 10982670 73316 1 
false
10 0 -1 34 100 1000 255 0 2005-04-13T18:00:00Z 0 360830503 11056058 81462 1 
false
10 0 -1 11 105 2 255 0 2005-04-13T18:00:00Z 0 360830503 11137592 81462 1 false
10 0 -1 52 105 2 255 0 2005-04-13T18:00:00Z 0 360830503 11219126 57026 0 false
10 0 -1 11 100 10 255 0 2005-04-13T18:00:00Z 0 360830503 11276224 73316 1 false
10 0 -1 7 100 10 255 0 2005-04-13T18:00:00Z 0 360830503 11349612 122186 1 false
10 0 -1 33 105 10 255 0 2005-04-13T18:00:00Z 0 360830503 11471870 73316 1 false
10 0 -1 34 105 10 255 0 2005-04-13T18:00:00Z 0 360830503 11545258 73316 1 false
10 0 -1 11 100 20 255 0 2005-04-13T18:00:00Z 0 360830503 11618646 73316 1 false
10 0 -1 7 100 20 255 0 2005-04-13T18:00:00Z 0 360830503 11692034 122186 1 false
10 0 -1 33 100 20 255 0 2005-04-13T18:00:00Z 0 360830503 11814292 81462 1 false
10 0 -1 34 100 20 255 0 2005-04-13T18:00:00Z 0 360830503 11895826 73316 1 false
10 0 -1 11 100 30 255 0 2005-04-13T18:00:00Z 0 360830503 11969214 73316 1 false
10 0 -1 7 100 30 255 0 2005-04-13T18:00:00Z 0 360830503 12042602 122186 1 false
10 0 -1 33 100 30 255 0 2005-04-13T18:00:00Z 0 360830503 12164860 81462 1 false
10 0 -1 34 100 30 255 0 2005-04-13T18:00:00Z 0 360830503 12246394 73316 1 false
10 0 -1 11 100 50 255 0 2005-04-13T18:00:00Z 0 360830503 12319782 73316 1 false
10 0 -1 7 100 50 255 0 2005-04-13T18:00:00Z 0 360830503 12393170 114042 1 false
10 0 -1 33 100 50 255 0 2005-04-13T18:00:00Z 0 360830503 12507284 81462 1 false
10 0 -1 34 100 50 255 0 2005-04-13T18:00:00Z 0 360830503 12588818 73316 1 false
10 0 -1 11 100 70 255 0 2005-04-13T18:00:00Z 0 360830503 12662206 73316 1 false
10 0 -1 7 100 70 255 0 2005-04-13T18:00:00Z 0 360830503 12735594 114042 1 false
10 0 -1 33 100 70 255 0 2005-04-13T18:00:00Z 0 360830503 12849708 81462 1 false
10 0 -1 34 100 70 255 0 2005-04-13T18:00:00Z 0 360830503 12931242 73316 1 false
10 0 -1 11 100 100 255 0 2005-04-13T18:00:00Z 0 360830503 13004630 73316 1 false
10 0 -1 7 100 100 255 0 2005-04-13T18:00:00Z 0 360830503 13078018 122186 1 false
10 0 -1 52 100 100 255 0 2005-04-13T18:00:00Z 0 360830503 13200276 57026 0 false
10 0 -1 33 100 100 255 0 2005-04-13T18:00:00Z 0 360830503 13257374 81462 1 false
10 0 -1 34 100 100 255 0 2005-04-13T18:00:00Z 0 360830503 13338908 73316 1 false
10 0 -1 11 100 150 255 0 2005-04-13T18:00:00Z 0 360830503 13412296 73316 1 false
10 0 -1 7 100 150 255 0 2005-04-13T18:00:00Z 0 360830503 13485684 122186 1 false
10 0 -1 52 100 150 255 0 2005-04-13T18:00:00Z 0 360830503 13607942 57026 0 false
10 0 -1 33 100 150 255 0 2005-04-13T18:00:00Z 0 360830503 13665040 81462 1 false
10 0 -1 34 100 150 255 0 2005-04-13T18:00:00Z 0 360830503 13746574 81462 1 false
10 0 -1 11 100 200 255 0 2005-04-13T18:00:00Z 0 360830503 13828108 73316 1 false
10 0 -1 7 100 200 255 0 2005-04-13T18:00:00Z 0 360830503 13901496 122186 1 false
10 0 -1 52 100 200 255 0 2005-04-13T18:00:00Z 0 360830503 14023754 57026 0 false
10 0 -1 33 100 200 255 0 2005-04-13T18:00:00Z 0 360830503 14080852 89606 1 false
10 0 -1 34 100 200 255 0 2005-04-13T18:00:00Z 0 360830503 14170530 81462 1 false
10 0 -1 11 100 250 255 0 2005-04-13T18:00:00Z 0 360830503 14252064 73316 1 false
10 0 -1 7 100 250 255 0 2005-04-13T18:00:00Z 0 360830503 14325452 122186 1 false
10 0 -1 52 100 250 255 0 2005-04-13T18:00:00Z 0 360830503 14447710 57026 0 false
10 0 -1 33 100 250 255 0 2005-04-13T18:00:00Z 0 360830503 14504808 89606 1 false
10 0 -1 34 100 250 255 0 2005-04-13T18:00:00Z 0 360830503 14594486 89606 1 false
10 0 -1 11 100 300 255 0 2005-04-13T18:00:00Z 0 360830503 14684164 73316 1 false
10 0 -1 7 100 300 255 0 2005-04-13T18:00:00Z 0 360830503 14839124 122186 1 false
10 0 -1 52 100 300 255 0 2005-04-13T18:00:00Z 0 360830503 14961382 57026 0 false
10 0 -1 33 100 300 255 0 2005-04-13T18:00:00Z 0 360830503 15018480 89606 1 false
10 0 -1 34 100 300 255 0 2005-04-13T18:00:00Z 0 360830503 15108158 89606 1 false
10 0 -1 11 100 350 255 0 2005-04-13T18:00:00Z 0 360830503 15197836 73316 1 false
10 0 -1 7 100 350 255 0 2005-04-13T18:00:00Z 0 360830503 15271224 114042 1 false
10 0 -1 52 100 350 255 0 2005-04-13T18:00:00Z 0 360830503 15385338 57026 0 false
10 0 -1 33 100 350 255 0 2005-04-13T18:00:00Z 0 360830503 15442436 89606 1 false
10 0 -1 34 100 350 255 0 2005-04-13T18:00:00Z 0 360830503 15532114 89606 1 false
10 0 -1 11 100 400 255 0 2005-04-13T18:00:00Z 0 360830503 15621792 73316 1 false
10 0 -1 7 100 400 255 0 2005-04-13T18:00:00Z 0 360830503 15776752 114042 1 false
10 0 -1 52 100 400 255 0 2005-04-13T18:00:00Z 0 360830503 15890866 57026 0 false
10 0 -1 33 100 400 255 0 2005-04-13T18:00:00Z 0 360830503 15947964 89606 1 false
10 0 -1 34 100 400 255 0 2005-04-13T18:00:00Z 0 360830503 16037642 81462 1 false
10 0 -1 11 100 450 255 0 2005-04-13T18:00:00Z 0 360830503 16119176 73316 1 false
10 0 -1 7 100 450 255 0 2005-04-13T18:00:00Z 0 360830503 16192564 114042 1 false
10 0 -1 52 100 450 255 0 2005-04-13T18:00:00Z 0 360830503 16306678 57026 0 false
10 0 -1 33 100 450 255 0 2005-04-13T18:00:00Z 0 360830503 16363776 81462 1 false
10 0 -1 34 100 450 255 0 2005-04-13T18:00:00Z 0 360830503 16445310 81462 1 false
10 0 -1 11 100 500 255 0 2005-04-13T18:00:00Z 0 360830503 16526844 73316 1 false
10 0 -1 7 100 500 255 0 2005-04-13T18:00:00Z 0 360830503 16681804 114042 1 false
10 0 -1 52 100 500 255 0 2005-04-13T18:00:00Z 0 360830503 16795918 57026 0 false
10 0 -1 33 100 500 255 0 2005-04-13T18:00:00Z 0 360830503 16853016 81462 1 false
10 0 -1 34 100 500 255 0 2005-04-13T18:00:00Z 0 360830503 16934550 81462 1 false
10 0 -1 11 100 550 255 0 2005-04-13T18:00:00Z 0 360830503 17016084 81462 1 false
10 0 -1 7 100 550 255 0 2005-04-13T18:00:00Z 0 360830503 17097618 114042 1 false
10 0 -1 52 100 550 255 0 2005-04-13T18:00:00Z 0 360830503 17211732 57026 0 false
10 0 -1 33 100 550 255 0 2005-04-13T18:00:00Z 0 360830503 17268830 81462 1 false
10 0 -1 34 100 550 255 0 2005-04-13T18:00:00Z 0 360830503 17350364 81462 1 false
10 0 -1 11 100 600 255 0 2005-04-13T18:00:00Z 0 360830503 17431898 81462 1 false
10 0 -1 7 100 600 255 0 2005-04-13T18:00:00Z 0 360830503 17513432 114042 1 false
10 0 -1 52 100 600 255 0 2005-04-13T18:00:00Z 0 360830503 17627546 57026 0 false
10 0 -1 33 100 600 255 0 2005-04-13T18:00:00Z 0 360830503 17684644 81462 1 false
10 0 -1 34 100 600 255 0 2005-04-13T18:00:00Z 0 360830503 17766178 81462 1 false
10 0 -1 11 100 650 255 0 2005-04-13T18:00:00Z 0 360830503 17847712 81462 1 false
10 0 -1 7 100 650 255 0 2005-04-13T18:00:00Z 0 360830503 17929246 114042 1 false
10 0 -1 52 100 650 255 0 2005-04-13T18:00:00Z 0 360830503 18043360 57026 0 false
10 0 -1 33 100 650 255 0 2005-04-13T18:00:00Z 0 360830503 18100458 81462 1 false
10 0 -1 34 100 650 255 0 2005-04-13T18:00:00Z 0 360830503 18181992 81462 1 false
10 0 -1 11 100 700 255 0 2005-04-13T18:00:00Z 0 360830503 18263526 81462 1 false
10 0 -1 7 100 700 255 0 2005-04-13T18:00:00Z 0 360830503 18426632 114042 1 false
10 0 -1 52 100 700 255 0 2005-04-13T18:00:00Z 0 360830503 18540746 57026 0 false
10 0 -1 33 100 700 255 0 2005-04-13T18:00:00Z 0 360830503 18597844 81462 1 false
10 0 -1 34 100 700 255 0 2005-04-13T18:00:00Z 0 360830503 18679378 81462 1 false
10 0 -1 11 100 750 255 0 2005-04-13T18:00:00Z 0 360830503 18760912 81462 1 false
10 0 -1 7 100 750 255 0 2005-04-13T18:00:00Z 0 360830503 18842446 105896 1 false
10 0 -1 52 100 750 255 0 2005-04-13T18:00:00Z 0 360830503 18948414 57026 0 false
10 0 -1 33 100 750 255 0 2005-04-13T18:00:00Z 0 360830503 19005512 81462 1 false
10 0 -1 34 100 750 255 0 2005-04-13T18:00:00Z 0 360830503 19087046 81462 1 false
10 0 -1 11 100 800 255 0 2005-04-13T18:00:00Z 0 360830503 19168580 81462 1 false
10 0 -1 7 100 800 255 0 2005-04-13T18:00:00Z 0 360830503 19250114 105896 1 false
10 0 -1 52 100 800 255 0 2005-04-13T18:00:00Z 0 360830503 19356082 57026 0 false
10 0 -1 33 100 800 255 0 2005-04-13T18:00:00Z 0 360830503 19413180 81462 1 false
10 0 -1 34 100 800 255 0 2005-04-13T18:00:00Z 0 360830503 19494714 81462 1 false
10 0 -1 11 100 850 255 0 2005-04-13T18:00:00Z 0 360830503 19576248 81462 1 false
10 0 -1 7 100 850 255 0 2005-04-13T18:00:00Z 0 360830503 19739354 105896 1 false
10 0 -1 52 100 850 255 0 2005-04-13T18:00:00Z 0 360830503 19845322 57026 0 false
10 0 -1 33 100 850 255 0 2005-04-13T18:00:00Z 0 360830503 19902420 81462 1 false
10 0 -1 34 100 850 255 0 2005-04-13T18:00:00Z 0 360830503 19983954 81462 1 false
10 0 -1 11 100 900 255 0 2005-04-13T18:00:00Z 0 360830503 20065488 81462 1 false
10 0 -1 7 100 900 255 0 2005-04-13T18:00:00Z 0 360830503 20147022 105896 1 false
10 0 -1 52 100 900 255 0 2005-04-13T18:00:00Z 0 360830503 20252990 57026 0 false
10 0 -1 33 100 900 255 0 2005-04-13T18:00:00Z 0 360830503 20310088 81462 1 false
10 0 -1 34 100 900 255 0 2005-04-13T18:00:00Z 0 360830503 20391622 81462 1 false
10 0 -1 11 100 925 255 0 2005-04-13T18:00:00Z 0 360830503 20473156 81462 1 false
10 0 -1 7 100 925 255 0 2005-04-13T18:00:00Z 0 360830503 20636262 105896 1 false
10 0 -1 52 100 925 255 0 2005-04-13T18:00:00Z 0 360830503 20742230 57026 0 false
10 0 -1 33 100 925 255 0 2005-04-13T18:00:00Z 0 360830503 20799328 81462 1 false
10 0 -1 34 100 925 255 0 2005-04-13T18:00:00Z 0 360830503 20880862 81462 1 false
10 0 -1 11 100 950 255 0 2005-04-13T18:00:00Z 0 360830503 20962396 81462 1 false
10 0 -1 7 100 950 255 0 2005-04-13T18:00:00Z 0 360830503 21043930 105896 1 false
10 0 -1 52 100 950 255 0 2005-04-13T18:00:00Z 0 360830503 21149898 57026 0 false
10 0 -1 33 100 950 255 0 2005-04-13T18:00:00Z 0 360830503 21206996 81462 1 false
10 0 -1 34 100 950 255 0 2005-04-13T18:00:00Z 0 360830503 21288530 81462 1 false
10 0 -1 11 100 975 255 0 2005-04-13T18:00:00Z 0 360830503 21370064 81462 1 false
10 0 -1 7 100 975 255 0 2005-04-13T18:00:00Z 0 360830503 21451598 105896 1 false
10 0 -1 52 100 975 255 0 2005-04-13T18:00:00Z 0 360830503 21557566 57026 0 false
10 0 -1 33 100 975 255 0 2005-04-13T18:00:00Z 0 360830503 21614664 81462 1 false
10 0 -1 34 100 975 255 0 2005-04-13T18:00:00Z 0 360830503 21696198 81462 1 false
10 0 -1 11 100 1000 255 0 2005-04-13T18:00:00Z 0 360830503 21777732 81462 1 
false
10 0 -1 7 100 1000 255 0 2005-04-13T18:00:00Z 0 360830503 21940838 105896 1 
false
10 0 -1 52 100 1000 255 0 2005-04-13T18:00:00Z 0 360830503 22046806 57026 0 
false
10 0 -1 33 100 1000 255 0 2005-04-13T18:00:00Z 0 360830503 22103904 73316 1 
false
10 0 -1 34 100 1000 255 0 2005-04-13T18:00:00Z 0 360830503 22177292 81462 1 
false
--------------------------------------------------------------------
GDSkey = 360830503
grid_type = 0
grid_name = Latitude/Longitude Grid
grid_shape_code = 0
grid_shape = spherical
grid_radius_spherical_earth = 6367.47
Nx = 360
Ny = 181
La1 = 90.0
Lo1 = 0.0
ResCompFlag = 128
La2 = -90.0
Lo2 = -1.0
Dx = 1.0
Dy = 1.0
ScanningMode = 0
1. Definitions



A "grib file" is a collection of grib records.

A "grib file index" is an index for the grib file, used by the netcdf-java-2.2 
library (nj22). 



If the grib file has a filename or URL "gribURL", its index file has the name 
"gribURL.gbx" . The nj22 library looks for it in the same location as the grib 
file, and when possible, creates it in the same location if it doesnt exist. It 
may create it in other locations if it cant create it in the same location as 
the grib file.



The grib file index has enough information so that nj22 can create the netcdf 
objects that represent the grib file, without having to scan the entire grib 
file. 





2. Grib2 file index format



Section 1 Global attributes

name = value of the attribute

name must be netcdf name (no blanks etc)

value is any string, do not quote

first attribute must be "location", with value a URL or local filename

second attribute must be "created", with value the date string the index file 
was created

------------------------------------------------------------

Section 2 Grib records

one line for each record in the file

blank separated

ProductType Discipline Category Parameter LevelType1 LevelValue1 LevelType2 
LevelValue2 ReferenceTime ForecastTime Gdskey GdsOffset PdsOffset

------------------------------------------------------------

Section 3+ unique GDS records

one section for each unique GDS in the file, sections seperated by --------- 
line

name = value of the attribute

must have an attribute

  Gdskey = token

which matches the Gdskey token in the Grib record line





3. Grib1 file index



Section 1 same as Grib2



Section 2 Grib Records

one line for each record in the file

blank separated

ProductType Discipline Category Parameter LevelType1 LevelValue1 255 
LevelValue2 ReferenceTime ForecastTime Gdskey BmsOrGdsOffset -1 DecScale 
BmsExists





Section 3+ unique GDS records, same as Grib2




The routine for a user to read in his own table is:


GribPDSParamTable.setParameterUserLookup(String UserGribTabPath)

the UserGribTabPath can be path, url, etc.  the routine expects a file
called: userlookup.lst with format:

158:     0:               2:    fnmoc_2.tab

and the table ie. fnmoc_2.tab in the same location.  tables are in ncep
format:

-1:7:-1:2
0:var0:undefined
1:PRES:Pressure [Pa]
2:PRMSL:Pressure reduced to MSL [Pa]
3:PTEND:Pressure tendency [Pa/s]
4:PVORT:Pot. vorticity [km^2/kg/s]
5:ICAHT:ICAO Standard Atmosphere Reference Height [M]
6:GP:Geopotential [m^2/s^2]
...


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.