CoverageCoordAxisBuilder subset(String dependsOn, CoverageCoordAxis.Spacing spacing, int ncoords, double[] values) { assert values != null; if (dependsOn != null) { this.dependenceType = CoverageCoordAxis.DependenceType.dependent; setDependsOn(dependsOn); } this.spacing = spacing; this.ncoords = ncoords; this.reader = null; this.values = values; this.isSubset = true; return this; }
public CoverageCoordAxisBuilder(String name, String units, String description, DataType dataType, AxisType axisType, AttributeContainer atts, CoverageCoordAxis.DependenceType dependenceType, String dependsOnS, CoverageCoordAxis.Spacing spacing, int ncoords, double startValue, double endValue, double resolution, double[] values, CoordAxisReader reader) { this.name = name; this.units = units; this.description = description; this.dataType = dataType; this.axisType = axisType; this.attributes = atts; this.dependenceType = dependenceType; this.setDependsOn(dependsOnS); this.spacing = spacing; this.ncoords = ncoords; this.startValue = startValue; this.endValue = endValue; this.resolution = resolution; this.values = values; this.reader = reader; }
builder.attributes = atts; builder.dependenceType = dependenceType; builder.setDependsOn(dependsOn); builder.spacing = spacing; builder.ncoords = ncoords;
builder.attributes = atts; builder.dependenceType = dependenceType; builder.setDependsOn(dependsOn); builder.spacing = spacing; builder.ncoords = ncoords; builder.attributes = dtCoordAxis.getAttributeContainer(); builder.dependenceType = dependenceType; builder.setDependsOn(dependsOn); builder.spacing = spacing; builder.ncoords = ncoords; builder.setDependsOn(dtCoordAxis.getDimension(0).getFullName()); // only the first dimension return ucar.nc2.util.Optional.of(new TimeAxis2DFmrc(builder));
builder.attributes = atts; builder.dependenceType = CoverageCoordAxis.DependenceType.dependent; builder.setDependsOn(timeAxisSubset.getName());
builder.attributes = atts; builder.dependenceType = CoverageCoordAxis.DependenceType.dependent; builder.setDependsOn(timeAxisSubset.getName());