|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.dmi.jog.GridInterpolation
A 4-dimensional grid (x,y,z,t) with interpolation methods.
The class extends the Grid class (through composition) with interpolation methods.
Missing values are represented by Float.NaN
.
Method Summary | |
boolean |
equals(Object o)
|
GridInterpolation |
fillMissingValues()
Returns a horizontally interpolated version of this GridInterpolation .
|
GridInterpolation |
fillMissingValues(int radius)
Returns a horizontally interpolated version of this GridInterpolation .
|
GridInterpolation |
filterAsselin()
Returns a smoothed version of this GridInterpolation . |
GridInterpolation |
gaussianGridInterpolation(int n,
float radius,
float c)
Returns a horizontally interpolated version of this GridInterpolation using
Gaussian weights.
|
float[][][][] |
getData()
|
Date[] |
getDates()
|
String |
getGridName()
|
static GridInterpolation |
getInstance(Grid g)
|
static GridInterpolation |
getInstance(String par,
float[] z,
float x0,
float y0,
float dx,
float dy,
Date[] t,
float[][][][] d)
|
static GridInterpolation |
getInstance(String par,
float[] z,
float x0,
float y0,
float dx,
float dy,
int nx,
int ny,
Date[] dates,
Station[] stations)
|
float |
getOriginX()
|
float |
getOriginY()
|
float |
getResolutionX()
|
float |
getResolutionY()
|
int |
getSizeT()
|
int |
getSizeX()
|
int |
getSizeY()
|
int |
getSizeZ()
|
float[] |
getVerticalLevels()
|
int |
hashCode()
|
GridInterpolation |
interpolateLinearDepth(float[] levels)
Returns a vertically interpolated GridInterpolation based on this GridInterpolation . |
GridInterpolation |
regridBoxAverage(float x0,
float y0,
float dx,
float dy,
int nxn,
int nyn)
Returns a regridded version of this GridInterpolation . |
GridInterpolation |
regridLinear(float x0,
float y0,
float dx,
float dy,
int nxn,
int nyn)
Returns a regridded version of this GridInterpolation . |
GridInterpolation |
regridLinear(Grid g)
Returns a regridded version of this GridInterpolation . |
Grid |
toGrid()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public boolean equals(Object o)
public GridInterpolation fillMissingValues()
GridInterpolation
.
A search radius of 3 is used.
GridInterpolation
.public GridInterpolation fillMissingValues(int radius)
GridInterpolation
.
After the interpolation no missing values remain.
radius
- number of surrounding grid points which are used in the interpolation of
missing values..
GridInterpolation
.public GridInterpolation filterAsselin()
GridInterpolation
. The applied filter is
a two dimensional Asselin filter.
GridInterpolation
.public GridInterpolation gaussianGridInterpolation(int n, float radius, float c)
GridInterpolation
using
Gaussian weights.
After the interpolation no missing values remain. It is recommended that this
method is only used for interpolating Grids
containing a limited
number of non-missing values.
n
- number of points used in the calculation of one grid point.radius
- radius of influence. This method only searches for data points
within the radius of influence. If less than n
are available
only these points are used.c
- correlation length.
GridInterpolation
using
Gaussian weights.public float[][][][] getData()
public Date[] getDates()
public String getGridName()
public static GridInterpolation getInstance(Grid g)
public static GridInterpolation getInstance(String par, float[] z, float x0, float y0, float dx, float dy, Date[] t, float[][][][] d)
public static GridInterpolation getInstance(String par, float[] z, float x0, float y0, float dx, float dy, int nx, int ny, Date[] dates, Station[] stations)
public float getOriginX()
public float getOriginY()
public float getResolutionX()
public float getResolutionY()
public int getSizeT()
public int getSizeX()
public int getSizeY()
public int getSizeZ()
public float[] getVerticalLevels()
public int hashCode()
public GridInterpolation interpolateLinearDepth(float[] levels)
GridInterpolation
based on this GridInterpolation
.
levels
- depth levels to interpolate to.
GridInterpolation
based on this GridInterpolation
.public GridInterpolation regridBoxAverage(float x0, float y0, float dx, float dy, int nxn, int nyn)
GridInterpolation
. The regridding is a simple
box average. The resulting GridInterpolation
must have a coarser resolution than
this GridInterpolation
.
Missing values are returned where the new grid definition extends the old.
x0
- longitude of the origin of this GridInterpolation
.y0
- latitude of the origin of this GridInterpolation
.dx
- longitudinal resolution of this GridInterpolation
.dy
- latitudinal resolution of this GridInterpolation
.nxn
- number of grid points in longitudinal direction.nyn
- number of grid points in latitudinal direction.
GridInterpolation
.public GridInterpolation regridLinear(float x0, float y0, float dx, float dy, int nxn, int nyn)
GridInterpolation
. The regridding is bi-linear.
Missing values are returned where the new grid definition extends the old.
x0
- longitude of the origin of this GridInterpolation
.y0
- latitude of the origin of this GridInterpolation
.dx
- longitudinal resolution of this GridInterpolation
.dy
- latitudinal resolution of this GridInterpolation
.nxn
- number of grid points in longitudinal direction.nyn
- number of grid points in latitudinal direction.
GridInterpolation
.public GridInterpolation regridLinear(Grid g)
GridInterpolation
. The regridding is bi-linear.
Missing values are returned where the new grid definition extends the old.
g
- GridInterpolation
to extract grid parameters to interpolate to.
GridInterpolation
.public Grid toGrid()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |