protected void promoteGlobalAttributes(DatasetOuterDimension typicalDataset) throws IOException { for (CacheVar cv : cacheList) { if (!(cv instanceof PromoteVar)) continue; PromoteVar pv = (PromoteVar) cv; Array data = pv.read(typicalDataset); if (data == null) throw new IOException("cant read "+typicalDataset); pv.dtype = DataType.getType(data); VariableDS promotedVar = new VariableDS(ncDataset, null, null, pv.varName, pv.dtype, dimName, null, null); /* if (data.getSize() > 1) { // LOOK case of non-scalar global attribute not delat with Dimension outer = ncDataset.getRootGroup().findDimension(dimName); Dimension inner = new Dimension("", (int) data.getSize(), false); //anonymous List<Dimension> dims = new ArrayList<Dimension>(2); dims.add(outer); dims.add(inner); promotedVar.setDimensions(dims); } */ ncDataset.addVariable(null, promotedVar); promotedVar.setProxyReader( this); promotedVar.setSPobject(pv); } }
protected void promoteGlobalAttributes(DatasetOuterDimension typicalDataset) throws IOException { for (CacheVar cv : cacheList) { if (!(cv instanceof PromoteVar)) continue; PromoteVar pv = (PromoteVar) cv; Array data = pv.read(typicalDataset); if (data == null) throw new IOException("cant read "+typicalDataset); pv.dtype = DataType.getType(data.getElementType()); VariableDS promotedVar = new VariableDS(ncDataset, null, null, pv.varName, pv.dtype, dimName, null, null); /* if (data.getSize() > 1) { // LOOK case of non-scalar global attribute not delat with Dimension outer = ncDataset.getRootGroup().findDimension(dimName); Dimension inner = new Dimension("", (int) data.getSize(), false); //anonymous List<Dimension> dims = new ArrayList<Dimension>(2); dims.add(outer); dims.add(inner); promotedVar.setDimensions(dims); } */ ncDataset.addVariable(null, promotedVar); promotedVar.setProxyReader( this); promotedVar.setSPobject(pv); } }
protected void promoteGlobalAttributes(DatasetOuterDimension typicalDataset) throws IOException { for (CacheVar cv : cacheList) { if (!(cv instanceof PromoteVar)) continue; PromoteVar pv = (PromoteVar) cv; Array data = pv.read(typicalDataset); pv.dtype = DataType.getType(data.getElementType()); VariableDS promotedVar = new VariableDS(ncDataset, null, null, pv.varName, pv.dtype, dimName, null, null); /* if (data.getSize() > 1) { // LOOK case of non-scalar global attribute not delat with Dimension outer = ncDataset.getRootGroup().findDimension(dimName); Dimension inner = new Dimension("", (int) data.getSize(), false); //anonymous List<Dimension> dims = new ArrayList<Dimension>(2); dims.add(outer); dims.add(inner); promotedVar.setDimensions(dims); } */ ncDataset.addVariable(null, promotedVar); promotedVar.setProxyReader( this); promotedVar.setSPobject(pv); } }
VariableDS vagg = new VariableDS(ncDataset, newGroup, null, v.getShortName(), v.getDataType(), vagg.setProxyReader( this); // do the reading here DatasetConstructor.transferVariableAttributes(v, vagg);
VariableDS vagg = new VariableDS(ncDataset, newGroup, null, v.getShortName(), v.getDataType(), vagg.setProxyReader( this); // do the reading here DatasetConstructor.transferVariableAttributes(v, vagg);
VariableDS joinAggCoord = new VariableDS(ncDataset, null, null, dimName, coordType, dimName, null, null); ncDataset.addVariable(null, joinAggCoord); joinAggCoord.setProxyReader( this); if (isDate) joinAggCoord.addAttribute(new ucar.nc2.Attribute(_Coordinate.AxisType, "Time")); VariableDS vagg = new VariableDS(ncDataset, newGroup, null, aggVar.getShortName(), aggVar.getDataType(), dimName + " " + aggVar.getDimensionsString(), null, null); vagg.setProxyReader( this); DatasetConstructor.transferVariableAttributes(aggVar, vagg);
VariableDS vagg = new VariableDS(ncDataset, newGroup, null, v.getShortName(), v.getDataType(), vagg.setProxyReader( this); // do the reading here DatasetConstructor.transferVariableAttributes(v, vagg);
VariableDS joinAggCoord = new VariableDS(ncDataset, null, null, dimName, coordType, dimName, null, null); ncDataset.addVariable(null, joinAggCoord); joinAggCoord.setProxyReader( this); if (isDate) joinAggCoord.addAttribute(new ucar.nc2.Attribute(_Coordinate.AxisType, "Time")); VariableDS vagg = new VariableDS(ncDataset, newGroup, null, aggVar.getShortName(), aggVar.getDataType(), dimName + " " + aggVar.getDimensionsString(), null, null); vagg.setProxyReader( this); DatasetConstructor.transferVariableAttributes(aggVar, vagg);
VariableDS vagg = new VariableDS(ncDataset, newGroup, null, v.getShortName(), v.getDataType(), v.getDimensionsString(), null, null); vagg.setProxyReader( this); DatasetConstructor.transferVariableAttributes(v, vagg); joinAggCoord.setProxyReader( this); ncDataset.getRootGroup().addVariable(joinAggCoord); aggVars.add(joinAggCoord);
VariableDS vagg = new VariableDS(ncDataset, newGroup, null, aggVar.getShortName(), aggVar.getDataType(), dimName + " " + aggVar.getDimensionsString(), null, null); vagg.setProxyReader( this); DatasetConstructor.transferVariableAttributes(aggVar, vagg);
VariableDS vagg = new VariableDS(ncDataset, newGroup, null, v.getShortName(), v.getDataType(), v.getDimensionsString(), null, null); vagg.setProxyReader( this); DatasetConstructor.transferVariableAttributes(v, vagg); joinAggCoord.setProxyReader( this); ncDataset.getRootGroup().addVariable(joinAggCoord); aggVars.add(joinAggCoord);
VariableDS vagg = new VariableDS(ncDataset, newGroup, null, v.getShortName(), v.getDataType(), v.getDimensionsString(), null, null); vagg.setProxyReader(this); DatasetConstructor.transferVariableAttributes(v, vagg); joinAggCoord.setProxyReader(this); ncDataset.getRootGroup().addVariable(joinAggCoord); aggVars.add(joinAggCoord);
aggVar.setProxyReader(proxyReader1D); aggVar.setSPobject( new Vstate1D(ugrid, timeInv)); nonAggVars.remove(aggVar);
aggVar.setProxyReader(proxyReader1D); aggVar.setSPobject( new Vstate1D(ugrid, timeInv)); nonAggVars.remove(aggVar);
aggVar.setProxyReader(proxyReader1D); aggVar.setSPobject( new Vstate1D(ugrid, timeInv)); nonAggVars.remove(aggVar);
aggVar.setProxyReader(proxyReader2D); aggVar.setSPobject(ugrid); nonAggVars.remove(aggVar);
aggVar.setProxyReader(proxyReader2D); aggVar.setSPobject(ugrid); nonAggVars.remove(aggVar);
aggVar.setProxyReader(proxyReader2D); aggVar.setSPobject(ugrid); nonAggVars.remove(aggVar);