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

Hi Joe:

the opendap request is failing, reason unknown.

CDM tries the same URL as an HTTP file, but the server does not support byte-range, so it fails.

to make sure that it only uses the opendap access, change URL to


now you should see the real problem. when i tried it from here, im getting a 404.


On 6/7/2013 2:01 PM, H. Joe Lee wrote:

   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: Server does not support byte Ranges
at ucar.nc2.NetcdfFile.getRaf(
at ucar.nc2.dataset.NetcdfDataset.openOrAcquireFile(
at ucar.nc2.dataset.NetcdfDataset.openDataset(
at ucar.nc2.ncml.NcMLReader.readNcML(
at ucar.nc2.ncml.NcMLReader.readNcML(
at ucar.nc2.ncml.NcMLReader.readNcML(
at ucar.nc2.dataset.NetcdfDataset.acquireNcml(
at ucar.nc2.dataset.NetcdfDataset.openOrAcquireFile(
at ucar.nc2.dataset.NetcdfDataset.openFile(
at ucar.nc2.ui.ToolsUI$
at ucar.nc2.ui.ToolsUI$
at 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/ or a URL reletive to the NcML location
(eg subdir/ 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?


HDF: Software that Powers Science

netcdf-java mailing list
For list information or to unsubscribe, visit:

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