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

lost indices in opendap request

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: lost indices in opendap request
  • Date: Wed, 28 Mar 2007 18:43:10 +0200

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