throw new IllegalArgumentException( "Non-null coverage required." ); this.coordSys = coverage.getGeoCoordSystem(); if ( this.coordSys == null ) StringBuilder descripSB = new StringBuilder( "All parameters on the \"") .append( this.name).append( "\" coordinate system: "); for ( GridDatatype curField : this.coverage.getGrids() )
GridCoordSystem coordSystem = gridset.getGeoCoordSystem(); ProjectionImpl fromProj = coordSystem.getProjection(); coordSystem.getLatLonBoundingBox();
GridCoordSystem coordSystem = gridset.getGeoCoordSystem(); ProjectionImpl fromProj = coordSystem.getProjection(); coordSystem.getLatLonBoundingBox();
GridCoordSystem coordSystem = gridset.getGeoCoordSystem(); ProjectionImpl fromProj = coordSystem.getProjection(); coordSystem.getLatLonBoundingBox();
GridCoordSystem gcs = gset.getGeoCoordSystem();
GridCoordSystem gcs = gset.getGeoCoordSystem();
GridCoordSystem gcs = gset.getGeoCoordSystem();
gridset1.getGeoCoordSystem();
ucar.nc2.dt.GridCoordSystem gcs = gridSet.getGeoCoordSystem(); ProjectionCT pct = gcs.getProjectionCT(); if (pct != null) {
ucar.nc2.dt.GridCoordSystem gcs = gridSet.getGeoCoordSystem(); ProjectionCT pct = gcs.getProjectionCT(); if (pct != null) {
ucar.nc2.dt.GridCoordSystem gcs = gridSet.getGeoCoordSystem(); ProjectionCT pct = gcs.getProjectionCT(); if (pct != null) {
ucar.nc2.dt.GridCoordSystem gcs = gridSet.getGeoCoordSystem(); ProjectionCT pct = gcs.getProjectionCT(); if (pct != null) {
ucar.nc2.dt.GridCoordSystem gcs = gridSet.getGeoCoordSystem(); ProjectionCT pct = gcs.getProjectionCT(); if (pct != null) {
gridset.getGeoCoordSystem();
curCovSum.addContent( new Element( "Title", owsNS).addContent( gs.getGeoCoordSystem().getName())); curCovSum.addContent( new Element( "Identifier", wcsNS).addContent( gs.getGeoCoordSystem().getName()));
private Element writeGridSet(GridDataset.Gridset gridset) { Element csElem = new Element("gridSet"); GridCoordSystem cs = gridset.getGeoCoordSystem(); csElem.setAttribute("name", cs.getName()); List<GridDatatype> grids = gridset.getGrids(); Collections.sort(grids); for (GridDatatype grid : grids) {
private Element writeGridSet(GridDataset.Gridset gridset) { Element csElem = new Element("gridSet"); GridCoordSystem cs = gridset.getGeoCoordSystem(); csElem.setAttribute("name", cs.getName()); List<GridDatatype> grids = gridset.getGrids(); Collections.sort(grids); for (GridDatatype grid : grids) {
private Element writeGridSet(GridDataset.Gridset gridset) { Element csElem = new Element("gridSet"); GridCoordSystem cs = gridset.getGeoCoordSystem(); csElem.setAttribute("name", cs.getName()); List<GridDatatype> grids = gridset.getGrids(); Collections.sort(grids); for (GridDatatype grid : grids) {
static public CalendarDateRange extractCalendarDateRange(GridDataset gridDataset) { CalendarDateRange maxDateRange = null; for (GridDataset.Gridset gridset : gridDataset.getGridsets()) { GridCoordSystem gsys = gridset.getGeoCoordSystem(); CalendarDateRange dateRange; CoordinateAxis1DTime time1D = gsys.getTimeAxis1D(); if (time1D != null) { dateRange = time1D.getCalendarDateRange(); } else { CoordinateAxis time = gsys.getTimeAxis(); if (time == null) continue; try { DateUnit du = new DateUnit( time.getUnitsString()); Date minDate = du.makeDate(time.getMinValue()); Date maxDate = du.makeDate(time.getMaxValue()); dateRange = CalendarDateRange.of( minDate, maxDate); } catch (Exception e) { logger.warn("Illegal Date Unit "+time.getUnitsString()); continue; } } if (maxDateRange == null) maxDateRange = dateRange; else maxDateRange = maxDateRange.extend( dateRange); } return maxDateRange; }
static public CalendarDateRange extractCalendarDateRange(GridDataset gridDataset) { CalendarDateRange maxDateRange = null; for (GridDataset.Gridset gridset : gridDataset.getGridsets()) { GridCoordSystem gsys = gridset.getGeoCoordSystem(); CalendarDateRange dateRange; CoordinateAxis1DTime time1D = gsys.getTimeAxis1D(); if (time1D != null) { dateRange = time1D.getCalendarDateRange(); } else { CoordinateAxis time = gsys.getTimeAxis(); if (time == null) continue; try { DateUnit du = new DateUnit( time.getUnitsString()); Date minDate = du.makeDate(time.getMinValue()); Date maxDate = du.makeDate(time.getMaxValue()); dateRange = CalendarDateRange.of( minDate, maxDate); } catch (Exception e) { logger.warn("Illegal Date Unit "+time.getUnitsString()); continue; } } if (maxDateRange == null) maxDateRange = dateRange; else maxDateRange.extend( dateRange); } return maxDateRange; }