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.
The thredds code isnt released yet. The latest netcdf-java-2.2 has this bug fixed, you can download at http://www.unidata.ucar.edu/packages/netcdf-java/ it will take a bit longer to propagate this to IDV and THREDDS. Conroe, David (Cont, ARL/CISD) wrote:
Rob I am having a little problem finding the GRIB code in the THREDDSpackage on the Unidata site.Please give me a little more info on how to download the packages. Thanks Dave Conroe NMSU/PSL/IMETS Phone DSN 258-1338, Comm 505-678-1338Fax 1735-----Original Message----- From: owner-idvdevelopers@xxxxxxxxxxxxxxxx [mailto:owner-idvdevelopers@xxxxxxxxxxxxxxxx] On Behalf Of John Caron Sent: Friday, April 15, 2005 6:02 PM To: Rob Cermak Cc: idvdevelopers@xxxxxxxxxxxxxxxx; support-netcdf-java@xxxxxxxxxxxxxxxx Subject: Re: Grib2 / Re: Supporting other data formats Hi Rob:Actually, this should work, i believe its a bug, ill let you know when we have a fix.BTW, a workaround is to open the file locally in the IDV, and then copy the generated index (*.gbx) onto the web server in the same directory. This will speed access up, so its a good thing to do anyway.Rob Cermak wrote:cc: to IDV groupthe THREDDS package using nj22 already handles grib2 as well as grib1.the grib decoders are written in java and can be used as a seperate package. the IDV now can read grib1 and grib2 files directly.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.robb...[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_000Open data source via web -> Grid files (netCDF/GRIB/OPeNDAP). Looks likethe grid types are correctly detected. Grib1, error: java.lang.NullPointerException at ucar.nc2.iosp.grib.Index2NC.open(Index2NC.java:20) atucar.nc2.iosp.grib.Grib1ServiceProvider.open(Grib1ServiceProvider.java:7 5)at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:645) at ucar.nc2.NetcdfFile.open(NetcdfFile.java:263) at ucar.nc2.NetcdfFile.open(NetcdfFile.java:212) atucar.nc2.dataset.NetcdfDataset.openFile(NetcdfDataset.java:226)atucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:125)at ucar.nc2.dataset.grid.GridDataset.open(GridDataset.java:65) atucar.nc2.dataset.grid.GridDataset.factory(GridDataset.java:74)atucar.unidata.data.grid.GeoGridDataSource.doMakeDataSet(GeoGridDataSource .java:266)atucar.unidata.data.grid.GeoGridDataSource.getDataset(GeoGridDataSource.ja va:283)atucar.unidata.data.grid.GeoGridDataSource.doMakeDataChoices(GeoGridDataSo urce.java:297)atucar.unidata.data.DataSourceImpl.getDataChoices(DataSourceImpl.java:959)atucar.unidata.data.DataManager.createDataSource(DataManager.java:850)atucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataVie wer.java:1280)atucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewe r.java:1218)atucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer. java:1075)at ucar.unidata.idv.DefaultIdv.handleAction(DefaultIdv.java:111) atucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer. java:1022)atucar.unidata.idv.chooser.UrlChooser.loadURLInner(UrlChooser.java:176)atucar.unidata.idv.chooser.UrlChooser.loadURL(UrlChooser.java:152)atucar.unidata.idv.chooser.UrlChooser.access$000(UrlChooser.java:72)atucar.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) atucar.nc2.iosp.grib.Grib2ServiceProvider.open(Grib2ServiceProvider.java:7 5)at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:645) at ucar.nc2.NetcdfFile.open(NetcdfFile.java:263) at ucar.nc2.NetcdfFile.open(NetcdfFile.java:212) atucar.nc2.dataset.NetcdfDataset.openFile(NetcdfDataset.java:226)atucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:125)at ucar.nc2.dataset.grid.GridDataset.open(GridDataset.java:65) atucar.nc2.dataset.grid.GridDataset.factory(GridDataset.java:74)atucar.unidata.data.grid.GeoGridDataSource.doMakeDataSet(GeoGridDataSource .java:266)atucar.unidata.data.grid.GeoGridDataSource.getDataset(GeoGridDataSource.ja va:283)atucar.unidata.data.grid.GeoGridDataSource.doMakeDataChoices(GeoGridDataSo urce.java:297)atucar.unidata.data.DataSourceImpl.getDataChoices(DataSourceImpl.java:959)atucar.unidata.data.DataManager.createDataSource(DataManager.java:850)atucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataVie wer.java:1280)atucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewe r.java:1218)atucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer. java:1075)at ucar.unidata.idv.DefaultIdv.handleAction(DefaultIdv.java:111) atucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer. java:1022)atucar.unidata.idv.chooser.UrlChooser.loadURLInner(UrlChooser.java:176)atucar.unidata.idv.chooser.UrlChooser.loadURL(UrlChooser.java:152)atucar.unidata.idv.chooser.UrlChooser.access$000(UrlChooser.java:72)atucar.unidata.idv.chooser.UrlChooser$1.run(UrlChooser.java:191)at ucar.unidata.util.Misc$2.run(Misc.java:773)
netcdf-java
archives: