public class invdist_power_isosearch2d extends java.lang.Object
Constructor and Description |
---|
invdist_power_isosearch2d() |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.String datafile,
java.lang.String outFile,
float xmin,
float xmax,
float ymin,
float ymax,
float dx,
float dy,
float nullval,
float weight,
float searchRadius) |
java.lang.String |
getColumnToken(java.lang.String s,
int tokenPosition)
utility method that returns a column value from a string that contains
multiple tokens
|
java.util.Vector |
getInverseDistance2dGrid(java.util.Vector gridVec,
java.lang.String data,
java.lang.String outFile,
float weight,
float searchRadius)
This is the interpolation function for this class, it does an Inverse
Distance Weighted (IDW) Interpolation, using a user-defined weight
coefficient, and serach radius.
|
static void |
main(java.lang.String[] args) |
public invdist_power_isosearch2d()
public java.util.Vector getInverseDistance2dGrid(java.util.Vector gridVec, java.lang.String data, java.lang.String outFile, float weight, float searchRadius)
gridVec
- Vector -- a raster grid with an x, y, p, i, j structuredata
- String -- the datafileoutFile
- String -- the output fileweight
- float -- the weight to be used for the interpolation, the
smaller this value (or closer to 1) the smoother the grid, the
larger the value the better the fit to the data. Typically,
for geological data a value of 2 is used and for biological
data 1.2 is commonly used.searchRadius
- float -- the lateral search direction -- if a grid cell has no
corresponding data within the search no interpolation on that
cell is donepublic java.lang.String getColumnToken(java.lang.String s, int tokenPosition)
string
- -- the string to tokenizetokenPosition
- -- the location in the string to getpublic static void main(java.lang.String[] args)
public void execute(java.lang.String datafile, java.lang.String outFile, float xmin, float xmax, float ymin, float ymax, float dx, float dy, float nullval, float weight, float searchRadius)