cs = new CoordinateSystem(ds, axesList, null); ds.addCoordinateSystem(cs);
cs = new CoordinateSystem(ds, axesList, null); ds.addCoordinateSystem(cs);
cs = new CoordinateSystem(ds, axesList, null); ds.addCoordinateSystem(cs);
private CoordinateSystem findReplacementCs(CoordinateSystem protoCs, String timeDim, NetcdfDataset result) { CoordinateSystem replace = result.findCoordinateSystem(protoCs.getName()); if (replace != null) return replace; List<CoordinateAxis> axes = new ArrayList<>(); for (CoordinateAxis axis : protoCs.getCoordinateAxes()) { CoordinateAxis ra = result.findCoordinateAxis(axis.getFullNameEscaped()); axes.add(ra); } // coord transforms are immutable and can be shared CoordinateSystem cs = new CoordinateSystem(result, axes, protoCs.getCoordinateTransforms()); result.addCoordinateSystem(cs); return cs; }
parseInfo.format(" assigned explicit CoordSystem '%s' for var= %s\n", cs.getName(), vp.v.getFullName()); } else { CoordinateSystem csnew = new CoordinateSystem(ncDataset, dataAxesList, null); ve.addCoordinateSystem(csnew); ncDataset.addCoordinateSystem(csnew);
parseInfo.format(" assigned explicit CoordSystem '%s' for var= %s%n", cs.getName(), vp.v.getFullName()); } else { CoordinateSystem csnew = new CoordinateSystem(ncDataset, dataAxesList, null); ve.addCoordinateSystem(csnew); ncDataset.addCoordinateSystem(csnew);
parseInfo.format(" assigned explicit CoordSystem '%s' for var= %s%n", cs.getName(), vp.v.getFullName()); } else { CoordinateSystem csnew = new CoordinateSystem(ncDataset, dataAxesList, null); ve.addCoordinateSystem(csnew); ncDataset.addCoordinateSystem(csnew);
parseInfo.format(" assigned maximal CoordSystem '%s' for var= %s%n", cs.getName(), ve.getFullName()); } else { CoordinateSystem csnew = new CoordinateSystem(ncDataset, axisList, null); csnew.setImplicit(true); if (null != implicit) ve.removeCoordinateSystem(implicit);
CoordinateSystem csnew = new CoordinateSystem(ncDataset, axisList, null);
parseInfo.format(" assigned implicit CoordSystem '%s' for var= %s\n", cs.getName(), vp.v.getFullName()); } else { CoordinateSystem csnew = new CoordinateSystem(ncDataset, dataAxesList, null); csnew.setImplicit(true); if (csnew.isComplete(vp.v)) {
parseInfo.format(" assigned implicit CoordSystem '%s' for var= %s%n", cs.getName(), vp.v.getFullName()); } else { CoordinateSystem csnew = new CoordinateSystem(ncDataset, dataAxesList, null); csnew.setImplicit(true); if (csnew.isComplete(vp.v)) {
parseInfo.format(" assigned maximal CoordSystem '%s' for var= %s\n", cs.getName(), ve.getFullName()); } else { CoordinateSystem csnew = new CoordinateSystem(ncDataset, axisList, null); csnew.setImplicit(true); if (null != implicit) ve.removeCoordinateSystem(implicit);
parseInfo.format(" assigned implicit CoordSystem '%s' for var= %s%n", cs.getName(), vp.v.getFullName()); } else { CoordinateSystem csnew = new CoordinateSystem(ncDataset, dataAxesList, null); csnew.setImplicit(true); if (csnew.isComplete(vp.v)) {
private CoordinateSystem findReplacementCs(CoordinateSystem protoCs, String timeDim, NetcdfDataset result) { CoordinateSystem replace = result.findCoordinateSystem(protoCs.getName()); if (replace != null) return replace; List<CoordinateAxis> axes = new ArrayList<CoordinateAxis>(); for (CoordinateAxis axis : protoCs.getCoordinateAxes()) { Variable v = result.findCoordinateAxis(axis.getFullNameEscaped()); CoordinateAxis ra; if (v instanceof CoordinateAxis) ra = (CoordinateAxis) v; else { // if not a CoordinateAxis, will turn into one ra = result.addCoordinateAxis((VariableDS) v); if (axis.getAxisType() != null) { ra.setAxisType(axis.getAxisType()); ra.addAttribute(new Attribute(_Coordinate.AxisType, axis.getAxisType().toString())); } } axes.add(ra); } // coord transforms are immutable and can be shared CoordinateSystem cs = new CoordinateSystem(result, axes, protoCs.getCoordinateTransforms()); result.addCoordinateSystem(cs); return cs; }
private CoordinateSystem findReplacementCs(CoordinateSystem protoCs, String timeDim, NetcdfDataset result) { CoordinateSystem replace = result.findCoordinateSystem(protoCs.getName()); if (replace != null) return replace; List<CoordinateAxis> axes = new ArrayList<CoordinateAxis>(); for (CoordinateAxis axis : protoCs.getCoordinateAxes()) { Variable v = result.findCoordinateAxis(axis.getFullNameEscaped()); CoordinateAxis ra; if (v instanceof CoordinateAxis) ra = (CoordinateAxis) v; else { // if not a CoordinateAxis, will turn into one ra = result.addCoordinateAxis((VariableDS) v); if (axis.getAxisType() != null) { ra.setAxisType(axis.getAxisType()); ra.addAttribute(new Attribute(_Coordinate.AxisType, axis.getAxisType().toString())); } } axes.add(ra); } // coord transforms are immutable and can be shared CoordinateSystem cs = new CoordinateSystem(result, axes, protoCs.getCoordinateTransforms()); result.addCoordinateSystem(cs); return cs; }