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.
>From: Rob Cermak <address@hidden> >Organization: University of Alaska, Fairbanks >Keywords: 200504151950.j3FJo6v2010724 IDV grib Hi Rob- >Thanks! Calling up the files from the local file system does work. > >Next problem(s) is the PRMSL_000 (had to add .grb file extension)... You can use the Data Source Type dropdown in the File Chooser to set the type of file instead of renaming if you want. >...loads, but plots over the wrong region. This the NAM #216 grid for >Alaska. Proper region is: > http://ak.aoos.org/ldm2/native.png - plot via NCL Okay. I'm cc'ing Robb Kambic to look into this. (Robb, I put the files in the appropriate grib1 and grib2 directories under testdata). >Grib2 PRSL_000.grb does not want to plot at all, but IDV does pull it in >as a dataset. Yeah, just after I sent my note, I noticed this also. >Pulling datasets in the first time generates a file.grb.grx. If I >shutdown IDV and attempt to pull in the file again, this error is >generated: > An error has occurred: There was an error loading the data: 0 Okay, Robb will look at this. >If I erase the .grx file, it will then load the grib2 file if I add the >dataset. Thanks again for the trace. >Trace: > > java.lang.ArrayIndexOutOfBoundsException: 0 > at ucar.nc2.dataset.CoordinateAxis1D.makeEdges(CoordinateAxis1D.java:33 > 4) > at ucar.nc2.dataset.CoordinateAxis1D.readValues(CoordinateAxis1D.java:3 > 26) > at ucar.nc2.dataset.CoordinateAxis1D.doRead(CoordinateAxis1D.java:288) > at ucar.nc2.dataset.CoordinateAxis1D.getCoordEdge(CoordinateAxis1D.java > :130) > at ucar.nc2.dataset.grid.GridCoordSys.getBoundingBox(GridCoordSys.java: > 570) > at ucar.nc2.dataset.grid.GridCoordSys.<init>(GridCoordSys.java:181) > at ucar.nc2.dataset.grid.GridCoordSys.makeGridCoordSys(GridCoordSys.jav > a:131) > at ucar.nc2.dataset.grid.GridDataset.constructCoordinateSystems(GridDat > aset.java:112) > at ucar.nc2.dataset.grid.GridDataset.<init>(GridDataset.java:89) > at ucar.nc2.dataset.grid.GridDataset.open(GridDataset.java:66) > at ucar.nc2.dataset.grid.GridDataset.factory(GridDataset.java:74) > at ucar.unidata.data.grid.GeoGridDataSource.doMakeDataSet(GeoGridDataSo > urce.java:266) > at ucar.unidata.data.grid.GeoGridDataSource.getDataset(GeoGridDataSourc > e.java:283) > at ucar.unidata.data.grid.GeoGridDataSource.doMakeDataChoices(GeoGridDa > taSource.java: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(IntegratedDat > aViewer.java:1280) > at ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataV > iewer.java:1218) > at ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataV > iewer.java:1199) > at ucar.unidata.idv.chooser.IdvChooser.makeDataSource(IdvChooser.java:3 > 34) > at ucar.unidata.idv.chooser.FileChooser.selectFileInner(FileChooser.jav > a: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(Unkno > wn Source) > at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) > at javax.swing.DefaultButtonModel.setPressed(Unknown Source) > at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sou > rce) > 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) > >Pulling in a grib1 file again, works fine. Okay. Something must be weird with the index file. Don 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.