public List<VariableSimpleIF> getDataVariables() { List<VariableSimpleIF> result = new ArrayList<VariableSimpleIF>( grids.size()); for (GridDatatype grid : getGrids()) { if (grid.getVariable() != null) // LOOK could make Adaptor if no variable result.add( grid.getVariable()); } return result; }
public List<VariableSimpleIF> getDataVariables() { List<VariableSimpleIF> result = new ArrayList<>( grids.size()); for (GridDatatype grid : getGrids()) { if (grid.getVariable() != null) // LOOK could make Adaptor if no variable result.add( grid.getVariable()); } return result; }
public List<VariableSimpleIF> getDataVariables() { List<VariableSimpleIF> result = new ArrayList<>( grids.size()); for (GridDatatype grid : getGrids()) { if (grid.getVariable() != null) // LOOK could make Adaptor if no variable result.add( grid.getVariable()); } return result; }
public WcsRangeField( GridDatatype gridDatatype ) { if ( gridDatatype == null) throw new IllegalArgumentException( "Range field must be non-null."); this.gridDatatype = gridDatatype; this.name = this.gridDatatype.getFullName(); this.label = this.gridDatatype.getInfo(); this.description = this.gridDatatype.getDescription(); this.datatypeString = this.gridDatatype.getDataType().toString(); this.unitsString = this.gridDatatype.getUnitsString(); this.validMin = this.gridDatatype.getVariable().getValidMin(); this.validMax = this.gridDatatype.getVariable().getValidMax(); // ToDo GeoGrids only handle scalar range fields. (???) axes = Collections.emptyList(); }
GridDatatype complementaryGrid = gds.findGridDatatype(paramVar.getFullName()); complementaryGrid = complementaryGrid.makeSubset(null, null, timeRange, zRangeUse, yRange, xRange); paramVar = complementaryGrid.getVariable();
GridDatatype complementaryGrid = gds.findGridDatatype(paramVar.getFullName()); complementaryGrid = complementaryGrid.makeSubset(null, null, timeRange, zRangeUse, yRange, xRange); paramVar = complementaryGrid.getVariable();
GridDatatype complementaryGrid = gds.findGridDatatype(paramVar.getFullName()); complementaryGrid = complementaryGrid.makeSubset(null, null, timeRange, zRangeUse, yRange, xRange); paramVar = complementaryGrid.getVariable();
GridDatatype complementaryGrid = gds.findGridDatatype(paramVar.getFullName()); complementaryGrid = complementaryGrid.makeSubset(null, null, timeRange, zRangeUse, yRange, xRange); paramVar = complementaryGrid.getVariable();
GridDatatype complementaryGrid = gds.findGridDatatype(paramVar.getFullName()); complementaryGrid = complementaryGrid.makeSubset(null, null, timeRange, zRangeUse, yRange, xRange); paramVar = complementaryGrid.getVariable();
resultBB.extend(gridBB); Variable gridV = gridWant.getVariable(); // LOOK WTF ?? varList.add(gridV); total_size += gridV.getSize() * gridV.getElementSize();
resultBB.extend(gridBB); Variable gridV = grid.getVariable(); varList.add(gridV); total_size += gridV.getSize() * gridV.getElementSize();
@Test @Ignore("Does this file exist in a shared location?") public void testAaron() throws Exception{ // different scale/offset in aggregation try (GridDataset dataset = GridDataset.open("G:/work/braekel/dataset.ncml" )) { GridDatatype grid = null; for (GridDatatype thisGrid : dataset.getGrids()) { if (thisGrid.getName().equals("cref")) { grid = thisGrid; } } List<Range> ranges = new ArrayList<Range>(); ranges.add(new Range(0, 0)); ranges.add(new Range(0, 0)); ranges.add(new Range(638, 638)); ranges.add(new Range(3750, 4622)); Array arr = grid.getVariable().read(ranges); Index index = arr.getIndex(); index.set(new int[]{0, 0, 0, 834}); logger.debug("index {} value {}", index.currentElement(), arr.getDouble(index)); } }
Variable gridV = grid.getVariable(); varList.add(gridV); total_size += gridV.getSize() * gridV.getElementSize();
Variable gridV = grid.getVariable(); varList.add(gridV); total_size += gridV.getSize() * gridV.getElementSize();
Variable gridV = grid.getVariable(); varList.add(gridV); total_size += gridV.getSize() * gridV.getElementSize();
GridCoordSystem gcs = gg.getCoordinateSystem(); Grid grid = new Grid(gg.getFullName()); VariableEnhanced ve = gg.getVariable();
Variable orgVar = ncd_2dtime.findVariable(grid.getVariable().getFullNameEscaped());
assertEquals("ens", ensDim.getShortName()); Variable variable = gridDatatype.getVariable().getOriginalVariable();