[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lost indices in opendap request



Hi,

We are using the Netcdf-Java 2.2.18 library <http://www.unidata.ucar.edu/software/netcdf-java/> library in order to save OPeNDAP request results into netCDF files.

Our requests are like  :
http://www.ifremer.fr/thredds/dodsC/mwf/ers1/monthly?quality_flag[10:1:10][0][10:1:10][10:1:10]


And the code used to save the request result as netCDF file is :

final NetcdfDataset loDataset = NetcdfDataset.openDataset(lSURL, false, null);
try {
   FileWriter.writeToFile(loDataset, "C:\\temp\\output.nc");
}
finally {
   loDataset.close();
}

(Where 'lSURL' is the opendap request).

But the request which are sent to the server are like :
http://www.ifremer.fr/thredds/dodsC/mwf/ers1/monthly?quality_flag[0:1:0][0][0:1:0][0:1:0]
(idem for the dimension requests which are automatically generated by the API).

You can see that that the indices offsets (10 in our example) have been reset to 0 by the API before sending the requests (for dimension or variables) to the server.

Is there anything wrong in the way the API is used ? or is there a bug somewhere ?

Many thanks,

Thomas



===============================================================================
To unsubscribe thredds, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
===============================================================================