/** * What is the data type of the aggregation coordinate ? * * @return the data type of the aggregation coordinate */ private DataType getCoordinateType() { List<Dataset> nestedDatasets = getDatasets(); DatasetOuterDimension first = (DatasetOuterDimension) nestedDatasets.get(0); return first.isStringValued ? DataType.STRING : DataType.DOUBLE; }
protected void buildNetcdfDataset(CancelTask cancelTask) throws IOException { buildCoords(cancelTask); Dataset typicalDataset = getTypicalDataset(); NetcdfFile typical = typicalDataset.acquireFile(null); DatasetConstructor.transferDataset(typical, ncDataset, null); String dimName = getDimensionName(); Dimension aggDim = new Dimension(dimName, getTotalCoords()); promoteGlobalAttributes( (DatasetOuterDimension) typicalDataset); DataType coordType = getCoordinateType(); VariableDS joinAggCoord = new VariableDS(ncDataset, null, null, dimName, coordType, dimName, null, null); ncDataset.addVariable(null, joinAggCoord); cacheList.add(cv); List<String> aggVarNames = getAggVariableNames(); setDatasetAcquireProxy(typicalDataset, ncDataset);
agg = new AggregationNew(newds, dimName, recheck);
protected void buildNetcdfDataset(CancelTask cancelTask) throws IOException { buildCoords(cancelTask); Dataset typicalDataset = getTypicalDataset(); NetcdfFile typical = typicalDataset.acquireFile(null); DatasetConstructor.transferDataset(typical, ncDataset, null); String dimName = getDimensionName(); Dimension aggDim = new Dimension(dimName, getTotalCoords()); promoteGlobalAttributes( (DatasetOuterDimension) typicalDataset); List<String> aggVarNames = getAggVariableNames(); DataType coordType = getCoordinateType(); joinAggCoord = new VariableDS(ncDataset, null, null, dimName, coordType, dimName, null, null); ncDataset.addVariable(null, joinAggCoord); setDatasetAcquireProxy(typicalDataset, ncDataset); readTimeCoordinates(ncDataset.findVariable(dimName), cancelTask);
agg = new AggregationNew(newds, dimName, recheck);
protected void buildNetcdfDataset(CancelTask cancelTask) throws IOException { buildCoords(cancelTask); Dataset typicalDataset = getTypicalDataset(); NetcdfFile typical = typicalDataset.acquireFile(null); DatasetConstructor.transferDataset(typical, ncDataset, null); String dimName = getDimensionName(); Dimension aggDim = new Dimension(dimName, getTotalCoords()); promoteGlobalAttributes( (DatasetOuterDimension) typicalDataset); DataType coordType = getCoordinateType(); VariableDS joinAggCoord = new VariableDS(ncDataset, null, null, dimName, coordType, dimName, null, null); ncDataset.addVariable(null, joinAggCoord); cacheList.add(cv); List<String> aggVarNames = getAggVariableNames(); setDatasetAcquireProxy(typicalDataset, ncDataset);
/** * What is the data type of the aggregation coordinate ? * * @return the data type of the aggregation coordinate */ private DataType getCoordinateType() { List<Dataset> nestedDatasets = getDatasets(); DatasetOuterDimension first = (DatasetOuterDimension) nestedDatasets.get(0); return first.isStringValued ? DataType.STRING : DataType.DOUBLE; }
agg = new AggregationNew(newds, dimName, recheck);
/** * What is the data type of the aggregation coordinate ? * * @return the data type of the aggregation coordinate */ private DataType getCoordinateType() { List<Dataset> nestedDatasets = getDatasets(); DatasetOuterDimension first = (DatasetOuterDimension) nestedDatasets.get(0); return first.isStringValued ? DataType.STRING : DataType.DOUBLE; }