opendap indices subscript

Hi all,

I have a problem when I use the java netcdf API (in version 2.2.18 or 2.2.19) for saving OPeNDAP request results as NetCDF files.

One example of OPeNDAP URL I use is :[0:1][1:2][13:23][13:33]

I first tried  with these lines of code :

    try {
ncfile = (NetcdfFile)NetcdfDataset.acquireDataset(filename, null);
                  0);                    } catch (IOException ioe) {
            System.out.println("trying to open " +  ioe.getMessage());

But the API is trying to download the full dataset by sending to the server a request like :

Of course the server cannot answer such a request because the volume for the dataset is about 20 Gb...

In order to avoid this, I've created an object in order to set to 'false' the 'preload' static attribute of the 'DODSNetcdfFile' object.

Now the API sends requests like :[0:1:10]
(as many as required variables)

It is quite right but the offsets of my array subscript disappear and become '0' for every request and every variable.

It seems that the problem happens in the 'readArrays' method of the 'DODSNetcdfFile' object.

Does anyone already face this problem ? Is this a bug or a mis-use of the API ?

Thanks in advance for any piece of advice you could give me.


To unsubscribe netcdf-java, visit:

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