public boolean isTimeDependent() { return original.isTimeDependent(); } }
public boolean isTimeDependent() { return original.isTimeDependent(); } }
public boolean isTimeDependent() { return original.isTimeDependent(); } }
private void testGrid(String uri, String var) throws IOException, InvalidRangeException { GridDataset ds = null; try { ds = GridDataset.open(uri); GeoGrid grid = ds.findGridByName(var); Section s = new Section(grid.getShape()); System.out.printf("var = %s %n", s); GridCoordSystem GridCoordS = grid.getCoordinateSystem(); VerticalTransform vt = GridCoordS.getVerticalTransform(); ArrayDouble.D3 z = vt.getCoordinateArray(0); Section sv = new Section(z.getShape()); System.out.printf("3dcoord = %s %n", sv); if (vt.isTimeDependent()) s = s.removeRange(0); assert s.equals(sv); } finally { if (ds != null) ds.close(); } }
if (timeName == null) { vt = vct.makeVerticalTransform(ncd, null); assert !vt.isTimeDependent(); ucar.ma2.Array coordVals = vt.getCoordinateArray(0); assert (null != coordVals); assert null != timeDim; vt = vct.makeVerticalTransform(ncd, timeDim); assert vt.isTimeDependent();