CoordinateSystemAdapter(CoordinateSystem cs) { this.cs = cs; // Check if the Vertical axis is present if (cs.hasVerticalAxis()) { vertical = true; } else { // Check if any of the unsupported dimensions is present Set<String> unsupported = NetCDFUtilities.getUnsupportedDimensions(); boolean present = false; for (String dimension : unsupported) { if (cs.containsAxis(dimension)) { present = true; break; } } if (present) { vertical = true; } else { vertical = false; } } }
/** * Do we have all the axes in the list? * @param wantAxes List of CoordinateAxis * @return true if all in our list. */ public boolean containsAxes(List<CoordinateAxis> wantAxes) { for (CoordinateAxis ca : wantAxes) { if (!containsAxis(ca.getFullName())) return false; } return true; }
/** * Do we have all the axes in the list? * @param wantAxes List of CoordinateAxis * @return true if all in our list. */ public boolean containsAxes(List<CoordinateAxis> wantAxes) { for (CoordinateAxis ca : wantAxes) { if (!containsAxis(ca.getFullName())) return false; } return true; }
/** * Do we have all the axes in the list? * @param wantAxes List of CoordinateAxis * @return true if all in our list. */ public boolean containsAxes(List<CoordinateAxis> wantAxes) { for (CoordinateAxis ca : wantAxes) { if (!containsAxis(ca.getFullName())) return false; } return true; }
CoordinateSystemAdapter(CoordinateSystem cs) { this.cs = cs; // Check if the Vertical axis is present if(cs.hasVerticalAxis()){ vertical = true; }else{ // Check if any of the unsupported dimensions is present Set<String> unsupported = UnidataUtilities.getUnsupportedDimensions(); boolean present = false; for(String dimension : unsupported){ if(cs.containsAxis(dimension)){ present = true; break; } } if(present){ vertical = true; }else{ vertical = false; } } }
CoordinateSystemAdapter(CoordinateSystem cs) { this.cs = cs; // Check if the Vertical axis is present if (cs.hasVerticalAxis()) { vertical = true; } else { // Check if any of the unsupported dimensions is present Set<String> unsupported = NetCDFUtilities.getUnsupportedDimensions(); boolean present = false; for (String dimension : unsupported) { if (cs.containsAxis(dimension)) { present = true; break; } } if (present) { vertical = true; } else { vertical = false; } } }