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); } }
orgV.getUnitsString(), orgV.getDescription()); memberV.setDataType(orgV.getDataType()); memberV.setSPobject(orgV.getSPobject()); // ?? memberV.getAttributes().addAll(orgV.getAttributes());
memberV.setSPobject(orgV.getSPobject()); // ?? memberV.addAll(orgV.getAttributes());
memberV.setSPobject(orgV.getSPobject()); // ?? memberV.addAll(orgV.getAttributes());
memberV.setSPobject(orgV.getSPobject()); // ?? memberV.getAttributes().addAll(orgV.getAttributes());
memberV.setSPobject(orgV.getSPobject()); // ?? memberV.addAll(orgV.getAttributes());
memberV.setSPobject(orgV.getSPobject()); // ?? memberV.addAll(orgV.getAttributes());
joinAggCoord.setSPobject( cv); cacheList.add(cv);
joinAggCoord.setSPobject( cv); cacheList.add(cv);
aggVar.setSPobject( new Vstate1D(ugrid, timeInv)); nonAggVars.remove(aggVar);
joinAggCoord.setSPobject( coordCacheVar);
aggVar.setSPobject( new Vstate1D(ugrid, timeInv)); nonAggVars.remove(aggVar);
aggVar.setSPobject( new Vstate1D(ugrid, timeInv)); nonAggVars.remove(aggVar);
joinAggCoord.setSPobject( coordCacheVar);
joinAggCoord.setSPobject(coordCacheVar);
aggVar.setSPobject(ugrid); nonAggVars.remove(aggVar);
aggVar.setSPobject(ugrid); nonAggVars.remove(aggVar);
aggVar.setSPobject(ugrid); nonAggVars.remove(aggVar);