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

20050810: IDV - NegativeArraySizeException loading GRIB file



>From: "Pascal Guillemette" <address@hidden>
>Organization: CAE
>Keywords: 200508110344.j7B3i542024880

Hi Pascal-

>Institution: cae
>Package Version: IDV 1.2b2
>Operating System: Windows Xp
>Hardware Information: Dell Inspiron 5160
>Inquiry: Hi,
>
>I have a problem similar to the one described in this message
>  http://my.unidata.ucar.edu/content/support/help/MailArchives/thredds/msg0045
> 0.html
>
>Indeed, I am also writing grib files with the MEL package and I try to load my
>  files in IDV to visualize the result (the interface is really nice by the wa
> y). But I also get a \"NegativeArraySizeException\" (see 
>call stack below). 
>
>My grib file should not be too too bad since I can dump its content in a text 
> file with \"wgrib.exe\" and it looks ok.  On the other hand, I have been able
>  to read successfully some other grib files such as NCEP climatology files. 
>
>It may the same problem as in the post mentionned above. If so, is there a fix
>  available? If not, I thought you may be interested in looking at the file (a
> ttached), which I tried to simplify as much as 
>
>possible: one layer, one time step, 300 x 300 points with a spacing of 0.1 deg
> .

I think we have a problem with the uploading of files from the web form.
Could you just send a message to address@hidden with the
attachment?

We are about to release the 1.2 version of IDV on Friday.  I'm thinking
that this has probably been fixed in that release, but would like to check it.

>
>I have: 
>- IDV 1.2b2  (idv_1_2b2_windows_ogl_i586_installer.exe)
>- Windows Xp
>
>
>Thanks a lot for your help!
>
>Pascal
>
>
>Error details:
>
>java.lang.NegativeArraySizeException   at 
>
>ucar.grib.grib1.Grib1GridDefinitionSection.<init>(Grib1GridDefinitionSection.j
> ava:160)      at 
>
>ucar.grib.grib1.Grib1Input.scan(Grib1Input.java:92)    at 
>
>ucar.nc2.iosp.grib.Grib1ServiceProvider.open(Grib1ServiceProvider.java:50)
>       at 
>
>ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:645)        at ucar.nc2.NetcdfFile.
> open(NetcdfFile.java:263)     
>
>at ucar.nc2.NetcdfFile.open(NetcdfFile.java:212)       at 
>
>ucar.nc2.dataset.NetcdfDataset.openFile(NetcdfDataset.java:232)        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.j
> ava:297)      at 
>
>ucar.unidata.data.DataSourceImpl.getDataChoices(DataSourceImpl.java:959)
>       at 
>
>ucar.unidata.data.DataManager.createDataSource(DataManager.java:850)   at 
>
>ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataViewer.ja
> va:1280)      at 
>
>ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java
> :1218)        at 
>
>ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java
> :1199)        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.p
> rocessEvent(Unknown 
>
>Source)        at java.awt.Container.processEvent(Unknown Source)      at 
>
>java.awt.Component.dispatchEventImpl(Unknown Source)   at java.awt.Container.d
> ispatchEventImpl(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.disp
> atchEventImpl(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.Eve
> ntDispatchThread.run(Unknown 
>
>Source)

Thanks for the details.  If you send me the file again, I'll check it
with the latest release.

I apologize for the problems with the attachements on the web form.

Don Murray
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.