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.
> Yuan > > > > Thank you for your response to my query. > > Hi Matt, When I tried it I got the missing template 15 error, I will assign this support ticket to CDM group. John, I added the table locally and got this error, can you take a look? WARNING: Missing template 15 Oct 19, 2010 1:16:42 PM ucar.grib.grib2.Grib2Pds factory WARNING: Missing template 15 Oct 19, 2010 1:16:46 PM ucar.nc2.ui.ToolsUI openFile SEVERE: NetcdfDataset.open cant open C:/Users/yuanho/Downloads/20101013_1800f06 (1).grib2 java.lang.NullPointerException at ucar.grib.grib2.Grib2WriteIndex.writeGribIndex(Grib2WriteIndex.java:188) Yuan > > I have made the attached table and put it into the C:\Documents and > Settings\ruglys\.unidata\idv\DefaultIdv folder but I am still getting > the same "NullPointerException" error. > > > > I have also altered the idv.rbi file in the same location (copy > attached) but even after doing that I am getting the same error. > > > > The error details are: > > > > java.lang.NullPointerException > > at > ucar.grib.grib2.Grib2WriteIndex.writeGribIndex(Grib2WriteIndex.java:188) > > at > ucar.grib.grib2.Grib2WriteIndex.writeGribIndex(Grib2WriteIndex.java:111) > > at > ucar.nc2.iosp.grib.GribGridServiceProvider.writeIndex(GribGridServicePro > vider.java:352) > > at > ucar.nc2.iosp.grib.GribGridServiceProvider.getIndex(GribGridServiceProvi > der.java:290) > > at > ucar.nc2.iosp.grib.GribGridServiceProvider.open(GribGridServiceProvider. > java:117) > > at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:1333) > > at ucar.nc2.NetcdfFile.open(NetcdfFile.java:769) > > at ucar.nc2.NetcdfFile.open(NetcdfFile.java:403) > > at > ucar.nc2.dataset.NetcdfDataset.openOrAcquireFile(NetcdfDataset.java:687) > > at > ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:426) > > at > ucar.nc2.dataset.NetcdfDataset.acquireDataset(NetcdfDataset.java:522) > > at > ucar.nc2.dt.grid.GridDataset.open(GridDataset.java:103) > > at > ucar.nc2.dt.grid.GridDataset.open(GridDataset.java:89) > > at > ucar.unidata.data.grid.GeoGridDataSource.doMakeDataSet(GeoGridDataSource > .java:1106) > > at > ucar.unidata.data.grid.GeoGridDataSource.getDataset(GeoGridDataSource.ja > va:1128) > > at > ucar.unidata.data.grid.GeoGridDataSource.initAfterCreation(GeoGridDataSo > urce.java:490) > > at > ucar.unidata.data.DataManager.createDataSource(DataManager.java:1559) > > at > ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataVie > wer.java:1998) > > at > ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewe > r.java:1915) > > at > ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewe > r.java:1849) > > at > ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewe > r.java:1822) > > at > ucar.unidata.idv.chooser.IdvChooser.makeDataSource(IdvChooser.java:943) > > at > ucar.unidata.idv.chooser.FileChooser.selectFilesInner(FileChooser.java:6 > 56) > > at > ucar.unidata.idv.chooser.FileChooser.selectFiles(FileChooser.java:525) > > at > ucar.unidata.idv.chooser.FileChooser.doLoadInThread(FileChooser.java:547 > ) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown > Source) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at ucar.unidata.util.Misc$2.run(Misc.java:1062) > > at ucar.unidata.util.Misc$3.run(Misc.java:1090) > > > > Many thanks, > > > > Matt > > > > > > Dr Matthew Ruglys CMet FRMetS > > Aviation Forecast Manager > > MetService of New Zealand > > PO Box 722 > > Wellington > > New Zealand > > +64 4 4700 731 > > > > > > -----Original Message----- > From: Unidata IDV Support [mailto:address@hidden] > Sent: Saturday, 16 October 2010 6:25 a.m. > To: Matt Ruglys > Cc: address@hidden; address@hidden > Subject: [IDV #YDG-264534]: Visualising GRIB2 > > > > > Hallo > > > > > > I am using IDV 2.9u1 to visualise GRIB2 files obtained from the NOAA > > > WAFS Internet File Service (WIFS) and the UK SADIS FTP server. > > > > > > In both cases I can open some files and not others. In particular when > > > attempting to open files containing the trial forecasts of CAT, icing > > > and in-cloud turbulence I get a "NullPointerException" error. However > > > the trial forecasts of CBs work just fine. > > > > > > Can you please tell me whether this is because the relevant parameter > > > tables are missing or whether I am doing something wrong? If the > former, > > > are there plans to include the appropriate tables? > > > > > Hi Matt, > > It is the problem of missing index table, the IDV may not be able to > include all the important index tables in its release, however, the user > can add the index table, here is the userguide: > > > > http://www.unidata.ucar.edu/software/idv/docs/userguide/data/GribTables. > html > > > > If you know which table this grib2 requires, you can create one and add > it in your local machine. > > > > Yuan > > > > > I have attached copies of a CAT file which I can't open and a CB file > > > which I can open. > > > > > > Many thanks, > > > > > > Matt > > > > > > Dr Matthew Ruglys CMet FRMetS > > > Aviation Forecast Manager > > > MetService of New Zealand > > > PO Box 722 > > > Wellington > > > New Zealand > > > +64 4 4700 731 > > > > > > > > > > > > Ticket Details > > =================== > > Ticket ID: YDG-264534 > > Department: Support IDV > > Priority: Normal > > Status: Closed > > > > > Ticket Details =================== Ticket ID: YDG-264534 Department: Support netCDF Java Priority: Normal Status: Open