|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.data.xyz.AbstractXYZ_DataSet
org.opensha.commons.data.xyz.AbstractGeoDataSet
org.opensha.commons.data.xyz.GriddedGeoDataSet
public class GriddedGeoDataSet
This is a Geohgraphic Dataset on a regular grid, as defined by a GriddedRegion. Points not in the given GriddedRegion cannot be set.
| Constructor Summary | |
|---|---|
GriddedGeoDataSet(GriddedRegion region,
boolean latitudeX)
|
|
| Method Summary | |
|---|---|
Object |
clone()
|
boolean |
contains(Location loc)
Returns true if the dataset contains the given Location, false otherwise. |
GriddedGeoDataSet |
copy()
Returns a shallow copy of this GeoDataSet. |
double |
get(Location loc)
Get the value at the given Location, or null if it doesn't exist. |
Location |
getLocation(int index)
Returns the location at the given index. |
LocationList |
getLocationList()
Returns a list of all locations in the correct order (as defined by indexOf). |
GriddedRegion |
getRegion()
|
int |
indexOf(Location loc)
Returns the index of the given location, or -1 if it doesn't exist. |
void |
set(Location loc,
double value)
Set the value at the given Location. |
int |
size()
Returns the size of this dataset. |
| Methods inherited from class org.opensha.commons.data.xyz.AbstractGeoDataSet |
|---|
contains, contains, get, get, get, getMaxLat, getMaxLon, getMaxX, getMaxY, getMaxZ, getMinLat, getMinLon, getMinX, getMinY, getMinZ, getPoint, getPointList, getValueList, getZTracker, indexOf, indexOf, isLatitudeX, locToPoint, ptToLoc, set, set, set, setAll, setLatitudeX |
| Methods inherited from class org.opensha.commons.data.xyz.AbstractXYZ_DataSet |
|---|
abs, add, exp, exp, log, log10, pow, scale, writeXYZFile, writeXYZFile |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opensha.commons.data.xyz.XYZ_DataSet |
|---|
abs, add, exp, exp, log, log10, pow, scale |
| Constructor Detail |
|---|
public GriddedGeoDataSet(GriddedRegion region,
boolean latitudeX)
| Method Detail |
|---|
public int size()
XYZ_DataSet
public void set(Location loc,
double value)
GeoDataSetLocation. If the location doesn't exist in the
dataset then it will be added.
loc - - the location at which to setvalue - - the value to setpublic double get(Location loc)
GeoDataSetLocation, or null if it doesn't exist.
loc - - the location at which to get
public int indexOf(Location loc)
GeoDataSet
loc - - the location at which to return the index
public Location getLocation(int index)
GeoDataSet
index - - the index at which to get the location
public boolean contains(Location loc)
GeoDataSet
loc - - the location to test
public Object clone()
clone in class Objectpublic GriddedGeoDataSet copy()
GeoDataSetGeoDataSet. Internal points are not cloned.
GeoDataSetpublic LocationList getLocationList()
GeoDataSet
public GriddedRegion getRegion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||