NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Eric Davies wrote:
At 08:30 AM 1/17/2006, you wrote:Hi Michael: Michael Tiller wrote:...you need the dimension time to be shared, so change to Dimension time = file.addDimension("time", 4, true, false, false);is there any good reason for a dimension not to be shared?from a documentation point of view, having two unrelated dimensions with the same namesounds like a bad thing.
I would reccomend to always make dimensions shared, the only possible exception is for char[] lengths. The reason its there is to support other file formats that often dont share dimension, eg HDF. So use: public Dimension addDimension(String dimName, int length); unless its the unlimited dimension, in which case you need the other one.
netcdf-java
archives: