[netcdf-java] [Q] "Server does not support byte Ranges" error?


  I'm testing NcML with location value as remote NetCDF file URL like below:

<?xml version="1.0" encoding="UTF-8"?>
  <variable name="v" type="float">
    <attribute type="string"  name="units" value="K" />

  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.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

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