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.