NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: Grib2 / Re: Supporting other data formats

Hi Rob-

Rob Cermak wrote:

Hmmm, I've got IDV 1.2b2 and tried to point it via URL (directly) to
a grib1 and grib2 file and fails.  I would be wonderful to have IDV work
directly on grib1 and grib2 files.

At present, it does not work from a remote set of files, only local.

[cermak@glasgow bin]$ uname -a
Linux glasgow.ims.uaf.edu 2.6.8.1-10mdk #1 Wed Sep 8 17:00:52 CEST 2004 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz unknown GNU/Linux

Java = j2re1.4.2_06, its old

Rob

Grib1:
  http://ak.aoos.org/ldm2/conduit/nam_216/20050415/1200/PRMSL_000

Grib2:
  http://ak.aoos.org/ldm2/conduit/gfs_000/20050415/1200/PMSL_000

Open data source via web -> Grid files (netCDF/GRIB/OPeNDAP). Looks like the grid types are correctly detected.

Thanks for the stack trace.  We'll look into this further.

Grib1, error:
java.lang.NullPointerException
        at ucar.nc2.iosp.grib.Index2NC.open(Index2NC.java:20)
        at 
ucar.nc2.iosp.grib.Grib1ServiceProvider.open(Grib1ServiceProvider.java:75)
        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:226)
        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:959)
        at ucar.unidata.data.DataManager.createDataSource(DataManager.java:850)
        at 
ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataViewer.java:1280)
        at 
ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1218)
        at 
ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java:1075)
        at ucar.unidata.idv.DefaultIdv.handleAction(DefaultIdv.java:111)
        at 
ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java:1022)
        at ucar.unidata.idv.chooser.UrlChooser.loadURLInner(UrlChooser.java:176)
        at ucar.unidata.idv.chooser.UrlChooser.loadURL(UrlChooser.java:152)
        at ucar.unidata.idv.chooser.UrlChooser.access$000(UrlChooser.java:72)
        at ucar.unidata.idv.chooser.UrlChooser$1.run(UrlChooser.java:191)
        at ucar.unidata.util.Misc$2.run(Misc.java:773)

grib2 error:

java.lang.NullPointerException
        at ucar.nc2.iosp.grib.Index2NC.open(Index2NC.java:20)
        at 
ucar.nc2.iosp.grib.Grib2ServiceProvider.open(Grib2ServiceProvider.java:75)
        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:226)
        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:959)
        at ucar.unidata.data.DataManager.createDataSource(DataManager.java:850)
        at 
ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataViewer.java:1280)
        at 
ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1218)
        at 
ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java:1075)
        at ucar.unidata.idv.DefaultIdv.handleAction(DefaultIdv.java:111)
        at 
ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java:1022)
        at ucar.unidata.idv.chooser.UrlChooser.loadURLInner(UrlChooser.java:176)
        at ucar.unidata.idv.chooser.UrlChooser.loadURL(UrlChooser.java:152)
        at ucar.unidata.idv.chooser.UrlChooser.access$000(UrlChooser.java:72)
        at ucar.unidata.idv.chooser.UrlChooser$1.run(UrlChooser.java:191)
        at ucar.unidata.util.Misc$2.run(Misc.java:773)



Don
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
        "Time makes everyone interesting, even YOU!"
*************************************************************



  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: