Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
Hi, I'm testing NcML with location value as remote NetCDF file URL like below: <?xml version="1.0" encoding="UTF-8"?> <netcdf location="http://eosdap.hdfgroup.uiuc.edu:8080/opendap/data/hdf4/foo2.hdf.gz.nc" xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"> <variable name="v" type="float"> <attribute type="string" name="units" value="K" /> </variable> </netcdf> However, ToolsUI-4.3.14 throws the following error when I open the above NcML file with NCDUMP tab: java.io.IOException: Server does not support byte Ranges at ucar.unidata.io.http.HTTPRandomAccessFile.<init>(HTTPRandomAccessFile.java:117) at ucar.unidata.io.http.HTTPRandomAccessFile.<init>(HTTPRandomAccessFile.java:67) at ucar.nc2.NetcdfFile.getRaf(NetcdfFile.java:594) at ucar.nc2.NetcdfFile.open(NetcdfFile.java:493) at ucar.nc2.dataset.NetcdfDataset.openOrAcquireFile(NetcdfDataset.java:693) at ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:424) at ucar.nc2.ncml.NcMLReader.readNcML(NcMLReader.java:409) at ucar.nc2.ncml.NcMLReader.readNcML(NcMLReader.java:252) at ucar.nc2.ncml.NcMLReader.readNcML(NcMLReader.java:202) at ucar.nc2.dataset.NetcdfDataset.acquireNcml(NetcdfDataset.java:847) at ucar.nc2.dataset.NetcdfDataset.openOrAcquireFile(NetcdfDataset.java:686) at ucar.nc2.dataset.NetcdfDataset.openFile(NetcdfDataset.java:563) at ucar.nc2.ui.ToolsUI$NCdumpPanel.run(ToolsUI.java:1630) at ucar.nc2.ui.ToolsUI$GetDataTask.run(ToolsUI.java:5636) at java.lang.Thread.run(Unknown Source) According to [1], I think I can specify a remote location in NcML. "The optional location attribute provides a reference to another netCDF dataset, called the referenced dataset. The location can be an absolute URL (eg http://server/myfile, or file:/usr/local/data/mine.nc) or a URL reletive to the NcML location (eg subdir/mydata.nc). The referenced dataset contains the variable data that is not explicitly specified in the NcML document itself. If the location is missing and the data is not defined in values elements, then an empty file is written similar to the way CDL files are written by ncgen." Can anyone explain what could be wrong in my NcML? Or is remote NetCDF file URL not supported as location value in the current netcdf-java implementation of handling NcML? [1] http://www.unidata.ucar.edu/software/netcdf/ncml/v2.2/AnnotatedSchema4.html -- HDF: Software that Powers Science
netcdf-java
archives: