/** * string representation */ public String toString() { return getFullName(); }
/** * string representation */ public String toString() { return getFullName(); }
/** * string representation */ public String toString() { return getFullName(); }
/** * find the named GeoGrid. * * @param fullName find this GeoGrid by full name * @return the named GeoGrid, or null if not found */ public GeoGrid findGridByName(String fullName) { for (GeoGrid ggi : grids) { if (fullName.equals(ggi.getFullName())) return ggi; } return null; }
/** * find the named GeoGrid. * * @param fullName find this GeoGrid by full name * @return the named GeoGrid, or null if not found */ public GeoGrid findGridByName(String fullName) { for (GeoGrid ggi : grids) { if (fullName.equals(ggi.getFullName())) return ggi; } return null; }
/** * find the named GeoGrid. * * @param fullName find this GeoGrid by full name * @return the named GeoGrid, or null if not found */ public GeoGrid findGridByName(String fullName) { for (GeoGrid ggi : grids) { if (fullName.equals(ggi.getFullName())) return ggi; } return null; }
/** * Instances which have same name and coordinate system are equal. */ public boolean equals(Object oo) { if (this == oo) return true; if (!(oo instanceof GeoGrid)) return false; GeoGrid d = (GeoGrid) oo; if (!getFullName().equals(d.getFullName())) return false; return getCoordinateSystem().equals(d.getCoordinateSystem()); }
/** * Instances which have same name and coordinate system are equal. */ public boolean equals(Object oo) { if (this == oo) return true; if (!(oo instanceof GeoGrid)) return false; GeoGrid d = (GeoGrid) oo; if (!getFullName().equals(d.getFullName())) return false; if (!getCoordinateSystem().equals(d.getCoordinateSystem())) return false; return true; }
/** * Instances which have same name and coordinate system are equal. */ public boolean equals(Object oo) { if (this == oo) return true; if (!(oo instanceof GeoGrid)) return false; GeoGrid d = (GeoGrid) oo; if (!getFullName().equals(d.getFullName())) return false; return getCoordinateSystem().equals(d.getCoordinateSystem()); }
public int compareTo(GridDatatype g) { return getFullName().compareTo(g.getFullName()); } }
/** * Override Object.hashCode() to be consistent with equals. */ public int hashCode() { if (hashCode == 0) { int result = 17; // result = 37*result + dataset.getName().hashCode(); result = 37 * result + getFullName().hashCode(); result = 37 * result + getCoordinateSystem().hashCode(); hashCode = result; } return hashCode; }
public int compareTo(GridDatatype g) { return getFullName().compareTo(g.getFullName()); } }
/** * Override Object.hashCode() to be consistent with equals. */ public int hashCode() { if (hashCode == 0) { int result = 17; // result = 37*result + dataset.getName().hashCode(); result = 37 * result + getFullName().hashCode(); result = 37 * result + getCoordinateSystem().hashCode(); hashCode = result; } return hashCode; }
public int compareTo(GridDatatype g) { return getFullName().compareTo(g.getFullName()); } }
/** * Override Object.hashCode() to be consistent with equals. */ public int hashCode() { if (hashCode == 0) { int result = 17; // result = 37*result + dataset.getName().hashCode(); result = 37 * result + getFullName().hashCode(); result = 37 * result + getCoordinateSystem().hashCode(); hashCode = result; } return hashCode; }
/** * nicely formatted information */ public String getInfo() { StringBuilder buf = new StringBuilder(200); buf.setLength(0); buf.append(getFullName()); Format.tab(buf, 30, true); buf.append(getUnitsString()); Format.tab(buf, 60, true); buf.append(hasMissingData()); Format.tab(buf, 66, true); buf.append(getDescription()); return buf.toString(); }
/** * nicely formatted information */ public String getInfo() { StringBuilder buf = new StringBuilder(200); buf.setLength(0); buf.append(getFullName()); Format.tab(buf, 30, true); buf.append(getUnitsString()); Format.tab(buf, 60, true); buf.append(hasMissingData()); Format.tab(buf, 66, true); buf.append(getDescription()); return buf.toString(); }
/** * nicely formatted information */ public String getInfo() { StringBuilder buf = new StringBuilder(200); buf.setLength(0); buf.append(getFullName()); Format.tab(buf, 30, true); buf.append(getUnitsString()); Format.tab(buf, 60, true); buf.append(hasMissingData()); Format.tab(buf, 66, true); buf.append(getDescription()); return buf.toString(); }
dataVolume = vs.read(start, shape); } catch (Exception ex) { log.error("GeoGrid.getdataSlice() on dataset " + getFullName()+" "+ dataset.getLocation(), ex); throw new java.io.IOException(ex);
private void doRead4( GeoGrid gg) throws IOException { Array aa = gg.readDataSlice(-1,-1,-1,-1); int[] shape = aa.getShape(); Index ima = aa.getIndex(); int[] w = getWeights( gg); for (int i=0; i<shape[0]; i++) { for (int j=0; j<shape[1]; j++) { for (int k=0; k<shape[2]; k++) { for (int m=0; m<shape[3]; m++) { double got = aa.getDouble( ima.set(i,j,k,m)); double want = ((double) (i*w[0] + j*w[1] + k*w[2] + m*w[3])); assert (got == want) : "got "+got+ " want "+want; // System.out.println("got "+got+ " want "+want); } } } } System.out.println("ok reading "+gg.getFullName()); }