public WcsDataset( GridDataset dataset, String datasetPath ) { this.datasetPath = datasetPath; int pos = datasetPath.lastIndexOf( "/" ); this.datasetName = ( pos > 0 ) ? datasetPath.substring( pos + 1 ) : datasetPath; this.dataset = dataset; this.availableCoverages = new HashMap<String, WcsCoverage>(); // ToDo WCS 1.0PlusPlus - compartmentalize coverage to hide GridDatatype vs GridDataset.Gridset ??? // ToDo WCS 1.0Plus - change FROM coverage for each parameter TO coverage for each coordinate system // This is WCS 1.0 coverage for each parameter for ( GridDatatype curGridDatatype : this.dataset.getGrids() ) { GridCoordSystem gcs = curGridDatatype.getCoordinateSystem(); if ( !gcs.isRegularSpatial() ) continue; this.availableCoverages.put( curGridDatatype.getFullName(), new WcsCoverage( curGridDatatype, this) ); } // ToDo WCS 1.0Plus - change FROM coverage for each parameter TO coverage for each coordinate system // This is WCS 1.1 style coverage for each coordinate system // for ( GridDataset.Gridset curGridSet : this.dataset.getGridsets()) // { // GridCoordSystem gcs = curGridSet.getGeoCoordSystem(); // if ( !gcs.isRegularSpatial() ) // continue; // this.availableCoverages.put( gcs.getName(), curGridSet ); // } }
private void extractGridDataset(PrintStream out, GridDataset gridDs) { out.println(" ngrids = " + gridDs.getGrids().size()); return;
private void extractGridDataset(PrintStream out, GridDataset gridDs) { out.println(" ngrids = " + gridDs.getGrids().size()); return;
List<GridDatatype> grids = gds.getGrids(); if (grids.size() == 0) throw new IllegalArgumentException("no grids");
private void extractGridDataset(PrintWriter out, GridDataset gridDs) { out.println(" ngrids = " + gridDs.getGrids().size()); return;
for (GridDatatype grid : gds.getGrids()) { String newMunged = munge(grid.getShortName()); if (newMunged.startsWith(oldMunged))
NetcdfDataset ncd = (NetcdfDataset) gridDs.getNetcdfFile(); int countGrids = gridDs.getGrids().size(); int countCoordAxes = ncd.getCoordinateAxes().size(); int countCoordSys = ncd.getCoordinateSystems().size();
NetcdfDataset ncd = (NetcdfDataset) gridDs.getNetcdfFile(); int countGrids = gridDs.getGrids().size(); int countCoordAxes = ncd.getCoordinateAxes().size(); int countCoordSys = ncd.getCoordinateSystems().size();
for (GridDatatype grid : gds.getGrids()) gridList.add(grid.getName());
for (GridDatatype grid : gds.getGrids()) gridList.add(grid.getName());
for (GridDatatype gg : gds.getGrids()) { GridCoordSystem gcs = gg.getCoordinateSystem(); Grid grid = new Grid(gg.getFullName());
List<GridDatatype> grids = gds.getGrids(); Collections.sort(grids, new GridComparator()); // sort by time axis, vert axis, grid name
List<GridDatatype> grids = gds.getGrids(); Collections.sort(grids, new GridComparator()); // sort by time axis, vert axis, grid name
List<GridDatatype> grids = gds.getGrids(); Collections.sort(grids, new GridComparator()); // sort by time axis, vert axis, grid name
static public ThreddsMetadata.Variables extractVariables(thredds.catalog.DataFormatType fileFormat, GridDataset gridDataset) { if ((fileFormat != null) && (fileFormat.equals(DataFormatType.GRIB1) || fileFormat.equals(DataFormatType.GRIB2))) { ThreddsMetadata.Variables vars = new ThreddsMetadata.Variables(fileFormat.toString()); for (GridDatatype grid : gridDataset.getGrids()) { ThreddsMetadata.Variable v = new ThreddsMetadata.Variable(); v.setName(grid.getFullName()); for (GridDatatype grid : gridDataset.getGrids()) { ThreddsMetadata.Variable v = new ThreddsMetadata.Variable(); vars.addVariable(v);
static public ThreddsMetadata.Variables extractVariables(thredds.catalog.DataFormatType fileFormat, GridDataset gridDataset) { if ((fileFormat != null) && (fileFormat.equals(DataFormatType.GRIB1) || fileFormat.equals(DataFormatType.GRIB2))) { ThreddsMetadata.Variables vars = new ThreddsMetadata.Variables(fileFormat.toString()); for (GridDatatype grid : gridDataset.getGrids()) { ThreddsMetadata.Variable v = new ThreddsMetadata.Variable(); v.setName(grid.getFullName()); for (GridDatatype grid : gridDataset.getGrids()) { ThreddsMetadata.Variable v = new ThreddsMetadata.Variable(); vars.addVariable(v);
boolean isGrib2 = fileFormat.equals(DataFormatType.GRIB2); ThreddsMetadata.Variables vars = new ThreddsMetadata.Variables(fileFormat.toString()); for (GridDatatype grid : gridDataset.getGrids()) { ThreddsMetadata.Variable v = new ThreddsMetadata.Variable(); v.setName(grid.getFullName()); for (GridDatatype grid : gridDataset.getGrids()) { ThreddsMetadata.Variable v = new ThreddsMetadata.Variable(); vars.addVariable(v);