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

Re: Questions

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: Re: Questions
  • Date: Tue, 17 Jan 2006 10:17:33 -0700



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 name
sounds 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.