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: "Poon Suk Kit" <address@hidden> >Organization: Government of Macau >Keywords: 200407190748.i6J7mXaW018543 IDV dods Hi- What happens if you use the Default type? Does it work? This example tickles an oversight in the list of appropriate types in the URL chooser. We'll change that for the upcoming release. Let us know if using the default type doesn't work and we'll give you a work around. I believe that it should recognize it as a DODS dataset if you don't change the default. >I select the type as Netcdf grid files >and the url as >http://dcs001.smg.net/cgi-bin/nph-dods/datacenter/data/idv/avn/avn_2004071812. > nc > >IDV prompt with error and >Contained exception:null >java.lang.NumberFormatException: null > > at HTTPClient.HTTPResponse.getHeaderAsInt(HTTPResponse.java:314) > > at ucar.netcdf.HTTPRandomAccessFile.<init>(HTTPRandomAccessFile.java:66) > > at ucar.netcdf.NetcdfFile.<init>(NetcdfFile.java:185) > > at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:75) > > at ucar.nc2.dataset.NetcdfDataset.factory(NetcdfDataset.java:88) > > at >ucar.unidata.data.grid.GeoGridDataSource.doMakeDataSet(GeoGridDataSource.jav >a:255) > > at >ucar.unidata.data.grid.GeoGridDataSource.getDataset(GeoGridDataSource.java:2 >74) > > at >ucar.unidata.data.grid.GeoGridDataSource.doMakeDataChoices(GeoGridDataSource >.java:288) > > at ucar.unidata.data.DataSourceImpl.getDataChoices(DataSourceImpl.java:789) > > at ucar.unidata.data.DataManager.createDataSource(DataManager.java:797) > > at >ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataViewer. >java:1199) > > at >ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.ja >va:1137) > > at >ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java >:1013) > > at ucar.unidata.idv.DefaultIdv.handleAction(DefaultIdv.java:134) > > at >ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java >:980) > > at ucar.unidata.idv.chooser.UrlChooser.loadURLInner(UrlChooser.java:150) > > at ucar.unidata.idv.chooser.UrlChooser.loadURL(UrlChooser.java:126) > > at ucar.unidata.idv.chooser.UrlChooser.access$000(UrlChooser.java:71) > > at ucar.unidata.idv.chooser.UrlChooser$1.run(UrlChooser.java:169) > > at ucar.unidata.util.Misc$1.run(Misc.java:1294) > >Exception thrown at: >Error creating data source:netcdf.grid >with:http://dcs001.smg.net/cgi-bin/nph-dods/datacenter/data/idv/avn/avn_2004 >071812.nc >ucar.unidata.util.WrapperExceptionjava.lang.NumberFormatException: null > >ucar.unidata.data.BadDataException: Error creating data source:netcdf.grid >with:http://dcs001.smg.net/cgi-bin/nph-dods/datacenter/data/idv/avn/avn_2004 >071812.nc >ucar.unidata.util.WrapperExceptionjava.lang.NumberFormatException: null >java.lang.NumberFormatException: null > > at ucar.unidata.data.DataManager.createDataSource(DataManager.java:821) > > at >ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataViewer. >java:1199) > > at >ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.ja >va:1137) > > at >ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java >:1013) > > at ucar.unidata.idv.DefaultIdv.handleAction(DefaultIdv.java:134) > > at >ucar.unidata.idv.IntegratedDataViewer.handleAction(IntegratedDataViewer.java >:980) > > at ucar.unidata.idv.chooser.UrlChooser.loadURLInner(UrlChooser.java:150) > > at ucar.unidata.idv.chooser.UrlChooser.loadURL(UrlChooser.java:126) > > at ucar.unidata.idv.chooser.UrlChooser.access$000(UrlChooser.java:71) > > at ucar.unidata.idv.chooser.UrlChooser$1.run(UrlChooser.java:169) > > at ucar.unidata.util.Misc$1.run(Misc.java:1294) > > >and the console reply with >Unknown >url:http://dcs001.smg.net/cgi-bin/nph-dods/datacenter/data/idv/avn/avn_2004071 > 812.nc > >Regards >SMG Don Murray NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publically 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.