assert time.getShape()[0] == n;
assert time.getDataType() == DataType.DOUBLE;
assert time.getDimension(0) == ncfile.findDimension("time");
Array data = time.read();
assert data.getRank() == 1;
assert data.getSize() == n;
assert data.getShape()[0] == n;
assert data.getElementType() == double.class;
double prev = Double.NaN;
IndexIterator dataI = data.getIndexIterator();
while (dataI.hasNext()) {
double dval = dataI.getDoubleNext();
System.out.println(" coord=" + dval);
assert (Double.isNaN(prev) || dval > prev);
prev = dval;