|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.grid.GridMath
public class GridMath
A class to handle grid math. This handles math between grids on different manifolds where possible.
| Field Summary | |
|---|---|
static String |
AXIS_X
axis identifier - X |
static String |
AXIS_Y
axis identifier - Y |
static String |
FUNC_AVERAGE
function for the applyFunctionOverTime routine |
static String |
FUNC_DIFFERENCE
function for the timeStepFunc routine |
static String |
FUNC_MAX
function for the applyFunctionOverTime routine |
static String |
FUNC_MIN
function for the applyFunctionOverTime routine |
static String |
FUNC_MODE
function for the applyFunctionOverTime routine |
static String |
FUNC_PRCNTL
function for the applyFunctionOverTime routine |
static String |
FUNC_RNG
function for the applyFunctionOverTime routine |
static String |
FUNC_STDEV
function for the applyFunctionOverTime routine |
static String |
FUNC_SUM
function for the applyFunctionOverTime routine |
static String |
FUNC_UPROB
function for the applyFunctionOverTime routine |
static Real |
NEGATIVE_ONE
negative one |
static int |
OPT_CYCLIC
cyclic option |
static int |
OPT_MISSING
missing option |
static int |
OPT_SYMMETRIC
symmetric option |
| Constructor Summary | |
|---|---|
GridMath()
|
|
| Method Summary | |
|---|---|
static FieldImpl |
add(FieldImpl grid1,
FieldImpl grid2)
Add two grids together |
static FieldImpl |
add(FieldImpl grid1,
FieldImpl grid2,
boolean useWA)
Add two grids together |
static FlatField |
applyFunctionOverGrids(FlatField[] grids,
String function)
Apply the function to the grids. |
static FieldImpl |
applyFunctionOverLevels(FieldImpl grid,
String function)
Apply the function to the time steps of the given grid over the levels. |
static FieldImpl |
applyFunctionOverMembers(FieldImpl grid,
float statThreshold,
float exptdLoBound,
float exptdUpBound,
String function)
Apply the function to the ens members of the given grid. |
static FieldImpl |
applyFunctionOverMembers(FieldImpl grid,
String function)
Apply the function to the ens members of the given grid. |
static FieldImpl |
applyFunctionOverMembers(FieldImpl grid,
String statThreshold,
String exptdLoBoundIn,
String exptdUpBoundIn,
String function)
Apply the function to the ens members of the given grid. |
static FieldImpl |
applyFunctionOverTime(FieldImpl grid,
String function,
boolean makeTimes)
Apply the function to the time steps of the given grid. |
static FieldImpl |
applyFunctionOverTime(FieldImpl grid,
String function,
int startIdx,
int idxStride,
boolean makeTimes)
Apply the function to the time steps of the given grid. |
static FieldImpl |
applyFunctionToAxis(FieldImpl grid,
String function,
String axis)
Apply the function to the x or y of the given grid at each level. |
static FieldImpl |
applyFunctionToLevels(FieldImpl grid,
String function)
Apply the function to the time steps of the given grid at each level. |
static FieldImpl |
atan2(FieldImpl grid1,
FieldImpl grid2)
Take the arctangent of two grids |
static FieldImpl |
atan2(FieldImpl grid1,
FieldImpl grid2,
boolean useWA)
Take the arctangent of two grids |
static FieldImpl |
averageOverMembers(FieldImpl grid)
Average the grid over member |
static FieldImpl |
averageOverTime(FieldImpl grid,
boolean makeTimes)
Average the grid at each point over time |
static FieldImpl |
ddx(FieldImpl grid)
Take the partial derivative with respect to X of the given field. |
static FieldImpl |
ddy(FieldImpl grid)
Take the partial derivative with respect to Y of the given field. |
static FieldImpl |
differenceFromBaseTime(FieldImpl grid)
This creates a field where D(T) = D(T)-D(0) Any time steps up to the offset time are set to missing |
static FieldImpl |
divide(FieldImpl grid1,
FieldImpl grid2)
Divide two grids |
static FieldImpl |
divide(FieldImpl grid1,
FieldImpl grid2,
boolean useWA)
Divide two grids |
static FieldImpl |
ensembleHighestValues(FieldImpl grid)
ensemble grid max values |
static FieldImpl |
ensembleLowestValues(FieldImpl grid)
ensemble grid min values |
static FieldImpl |
ensembleModeValues(FieldImpl grid)
ensemble grid min values |
static FieldImpl |
ensemblePercentileValues(FieldImpl grid,
int percent)
ensemble grid min values |
static FieldImpl |
ensemblePercentileValues(FieldImpl grid,
String percent)
ensemble grid min values |
static FieldImpl |
ensembleRangeValues(FieldImpl grid)
ensemble grid range values |
static FieldImpl |
ensembleStandardDeviation(FieldImpl grid)
ensemble Standard Deviation |
static FieldImpl |
ensembleUProbabilityValues(FieldImpl grid,
String logicalOp,
float pValue,
float exptdLoBound,
float exptdUpBound)
ensemble grid univariate probability |
static FieldImpl |
ensembleUProbabilityValues(FieldImpl grid,
String logicalOp,
String pValue,
String exptdLoBound,
String exptdUpBound)
ensemble grid univariate probability |
static float |
evaluateMode(float[] data)
evaluate mode value |
static float |
evaluatePercentile(float[] values,
int begin,
int length,
double p)
evaluate percentile value |
static float |
evaluateUProbability(float[] values,
float pValue,
int length)
evaluate univariate probability of "variable with n ensemble values" < pValue code from $NAWIPS/gempak/source/diaglib/de/decprb.c used to make this function. |
static FieldImpl |
maxOverTime(FieldImpl grid,
boolean makeTimes)
Take the max value at each grid point |
static FieldImpl |
minOverTime(FieldImpl grid,
boolean makeTimes)
Take the min value at each grid point |
static FieldImpl |
multiply(FieldImpl grid1,
FieldImpl grid2)
Multiply two grids |
static FieldImpl |
multiply(FieldImpl grid1,
FieldImpl grid2,
boolean useWA)
Multiply two grids |
static FieldImpl |
partial(FieldImpl grid,
int domainIndex)
Take the partial derivative with respect variable at the domain index. |
static FieldImpl |
standardDeviationOverTime(FieldImpl grid,
boolean makeTimes)
Compute the standard deviation of the grid at each point over time |
static FieldImpl |
subtract(FieldImpl grid1,
FieldImpl grid2)
Subtract two grids |
static FieldImpl |
subtract(FieldImpl grid1,
FieldImpl grid2,
boolean useWA)
Subtract two grids |
static FieldImpl |
sumFromBaseTime(FieldImpl grid)
This creates a field where D(T) = D(0)+D(1)+...+D(T-1)+D(T) |
static FieldImpl |
sumOverTime(FieldImpl grid,
boolean makeTimes)
Sum each grid point |
static FieldImpl |
timeRunningAverage(FieldImpl grid,
int nave,
int opt)
Create a running average across the time dimension. |
static FieldImpl |
timeRunningAverage(FieldImpl grid,
int nave,
int opt,
boolean skipMissing)
Create a running average across the time dimension. |
static FieldImpl |
timeStepDifference(FieldImpl grid,
int offset)
This creates a field where D(T) = D(T)-D(T+offset) Any time steps up to the offset time are set to missing |
static FieldImpl |
timeStepFunc(FieldImpl grid,
int offset,
String func)
This creates a field where is either D(T) = D(T)-D(T+offset) or D(T) = D(T)+D(T+offset) depending on the value of the func argument Any time steps up to the offset time are set to missing. |
static FieldImpl |
timeStepSum(FieldImpl grid,
int offset)
This creates a field where D(T) = D(T)+D(T+offset) Any time steps up to the offset time are set to missing |
static FieldImpl |
timeWeightedRunningAverage(FieldImpl grid,
float[] wgts,
int opt)
Create a running average across the time dimension. |
static FieldImpl |
timeWeightedRunningAverage(FieldImpl grid,
float[] wgts,
int opt,
boolean skipMissing)
Create a running average across the time dimension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FUNC_AVERAGE
public static final String FUNC_STDEV
public static final String FUNC_PRCNTL
public static final String FUNC_UPROB
public static final String FUNC_SUM
public static final String FUNC_MAX
public static final String FUNC_MIN
public static final String FUNC_RNG
public static final String FUNC_MODE
public static final String FUNC_DIFFERENCE
public static final int OPT_CYCLIC
public static final int OPT_MISSING
public static final int OPT_SYMMETRIC
public static final String AXIS_X
public static final String AXIS_Y
public static final Real NEGATIVE_ONE
| Constructor Detail |
|---|
public GridMath()
| Method Detail |
|---|
public static FieldImpl add(FieldImpl grid1,
FieldImpl grid2)
throws VisADException
grid1 - first gridgrid2 - second grid
VisADException - problem doing the math
public static FieldImpl add(FieldImpl grid1,
FieldImpl grid2,
boolean useWA)
throws VisADException
grid1 - first gridgrid2 - second griduseWA - use WEIGHTED_AVERAGE for resampling
VisADException - problem doing the math
public static FieldImpl subtract(FieldImpl grid1,
FieldImpl grid2)
throws VisADException
grid1 - first gridgrid2 - second grid
VisADException - problem doing the math
public static FieldImpl subtract(FieldImpl grid1,
FieldImpl grid2,
boolean useWA)
throws VisADException
grid1 - first gridgrid2 - second griduseWA - _more_
VisADException - problem doing the math
public static FieldImpl multiply(FieldImpl grid1,
FieldImpl grid2)
throws VisADException
grid1 - first gridgrid2 - second grid
VisADException - problem doing the math
public static FieldImpl multiply(FieldImpl grid1,
FieldImpl grid2,
boolean useWA)
throws VisADException
grid1 - first gridgrid2 - second griduseWA - _more_
VisADException - problem doing the math
public static FieldImpl divide(FieldImpl grid1,
FieldImpl grid2)
throws VisADException
grid1 - first gridgrid2 - second grid
VisADException - problem doing the math
public static FieldImpl divide(FieldImpl grid1,
FieldImpl grid2,
boolean useWA)
throws VisADException
grid1 - first gridgrid2 - second griduseWA - _more_
VisADException - problem doing the math
public static FieldImpl atan2(FieldImpl grid1,
FieldImpl grid2)
throws VisADException
grid1 - first gridgrid2 - second grid
VisADException - problem doing the math
public static FieldImpl atan2(FieldImpl grid1,
FieldImpl grid2,
boolean useWA)
throws VisADException
grid1 - first gridgrid2 - second griduseWA - _more_
VisADException - problem doing the math
public static FieldImpl averageOverTime(FieldImpl grid,
boolean makeTimes)
throws VisADException
grid - grid to averagemakeTimes - If true then make a time field with the range being the same computed value
If false then just return a single field of the computed values
VisADException - On badness
public static FieldImpl standardDeviationOverTime(FieldImpl grid,
boolean makeTimes)
throws VisADException
grid - grid to compute stdmakeTimes - If true then make a time field with the range being the same computed value
If false then just return a single field of the computed values
VisADException - On badness
public static FieldImpl averageOverMembers(FieldImpl grid)
throws VisADException
grid - ensemble grid to average
VisADException - On badness
public static FieldImpl ensembleStandardDeviation(FieldImpl grid)
throws VisADException
grid - ensemble grid
VisADException - On badness
public static FieldImpl ensembleLowestValues(FieldImpl grid)
throws VisADException
grid - ensemble grid
VisADException - On badness
public static FieldImpl ensembleHighestValues(FieldImpl grid)
throws VisADException
grid - ensemble grid
VisADException - On badness
public static FieldImpl ensembleRangeValues(FieldImpl grid)
throws VisADException
grid - ensemble grid
VisADException - On badness
public static FieldImpl ensemblePercentileValues(FieldImpl grid,
String percent)
throws VisADException
grid - ensemble gridpercent - _more_
VisADException - On badness
public static FieldImpl ensemblePercentileValues(FieldImpl grid,
int percent)
throws VisADException
grid - ensemble gridpercent - _more_
VisADException - On badness
public static FieldImpl ensembleUProbabilityValues(FieldImpl grid,
String logicalOp,
float pValue,
float exptdLoBound,
float exptdUpBound)
throws VisADException
grid - ensemble gridlogicalOp - gt or lt for P(X > | < pValue)pValue - probability threshold value P(valueAtGridPoint < pValue)exptdLoBound - _more_exptdUpBound - _more_
VisADException - On badness
public static FieldImpl ensembleUProbabilityValues(FieldImpl grid,
String logicalOp,
String pValue,
String exptdLoBound,
String exptdUpBound)
throws VisADException
grid - ensemble gridlogicalOp - gt or lt for P(X > | < pValue)pValue - probability threshold value P(valueAtGridPoint < pValue)exptdLoBound - _more_exptdUpBound - _more_
VisADException - On badness
public static FieldImpl ensembleModeValues(FieldImpl grid)
throws VisADException
grid - ensemble grid
VisADException - On badness
public static FieldImpl timeStepDifference(FieldImpl grid,
int offset)
throws VisADException
grid - grid to averageoffset - time step offset. e.g., offset=-1 results in D(T)=D(T)-D(T-1)
VisADException - On badness
public static FieldImpl timeStepSum(FieldImpl grid,
int offset)
throws VisADException
grid - grid to averageoffset - time step offset. e.g., offset=-1 results in D(T)=D(T)+D(T-1)
VisADException - On badness
public static FieldImpl differenceFromBaseTime(FieldImpl grid)
throws VisADException
grid - grid to average
VisADException - On badness
public static FieldImpl sumFromBaseTime(FieldImpl grid)
throws VisADException
grid - grid to sum
VisADException - On badness
public static FieldImpl timeStepFunc(FieldImpl grid,
int offset,
String func)
throws VisADException
grid - grid to averageoffset - time step offset.func - which function to apply, SUM or DIFFERENCE
VisADException - On badness
public static FieldImpl timeWeightedRunningAverage(FieldImpl grid,
float[] wgts,
int opt)
throws VisADException
grid - grid to averagewgts - weights per step (usually odd and add to 1)opt - options for end points
N = {last point in the series}
xi = {input series}
xo = {output series}
nwgt = {number of wgts}
opt < 0 : utilize cyclic conditions
e.g., nwgt = 2
xo(0) = w(0) * xi(0) + w(1) * xi(1)
xo(N) = w(0) * xi(N) + w(1) * xi(0)
e.g., nwgt = 3
xo(0) = w(0) * xi(N) + w(1) * xi(0) + w(2) * xi(1)
xo(N) = w(0) * xi(N - 1) + w(1) * xi(N) + w(2) * xi(0)
e.g., nwgt = 4
xo(0) = w(0) * xi(N) + w(1) * xi(0) + w(2) * xi(1) + w(3) * xi(2)
xo(N) = w(0) * xi(N - 1) + w(1) * xi(N) + w(2) * xi(1) + w(3) * xi(2)
opt = 0 : set unsmoothed beginning and end pts to x@_FillValue (most common)
e.g., nwgt = 2
xo(0) = w(0) * xi(0) + w(1) * xi(1)
xo(N) = xi@_FillValue
e.g., nwgt = 3
xo(0) = xi@_FillValue
xo(1) = w(0) * xi(0) + w(1) * xi(1) + w(2) * xi(2)
xi(N) = xi@_FillValue
e.g., nwgt = 4
xo(0) = xi@_FillValue
xo(1) = w(0) * xi(0) + w(1) * xi(1) + w(2) * xi(2) + w(3) * xi(3)
xo(N - 2) = w(0) * xi(N - 3) + w(1) * xi(N - 2) + w(2) * xi(N - 1) + w(3) * xi(N)
xo(N - 1) = xi@_FillValue
xo(N) = xi@_FillValue
opt > 0 : utilize reflective (symmetric) conditions
e.g., nwgt = 2
xo(0) = w(0) * xi(0) + w(1) * xi(1)
xo(N) = w(0) * xi(N) + w(0) * xi(0)
e.g., nwgt = 3
xo(0) = w(0) * xi(1) + w(1) * xi(0) + w(2) * xi(1)
xo(N) = w(0) * xi(N - 1) + w(1) * xi(N) + w(2) * xi(N - 1)
e.g., nwgt = 4
xo(0) = w(0) * xi(1) + w(1) * xi(0) + w(2) * xi(1) + w(3) * xi(2)
xo(N) = w(0) * xi(N - 1) + w(1) * xi(N) + w(2) * xi(0) + w(3) * xi(2)
VisADException - On badness
public static FieldImpl timeWeightedRunningAverage(FieldImpl grid,
float[] wgts,
int opt,
boolean skipMissing)
throws VisADException
grid - grid to averagewgts - weights per step (usually odd and add to 1)opt - options for end points
N = {last point in the series}
xi = {input series}
xo = {output series}
nwgt = {number of wgts}
opt < 0 : utilize cyclic conditions
e.g., nwgt = 2
xo(0) = w(0) * xi(0) + w(1) * xi(1)
xo(N) = w(0) * xi(N) + w(1) * xi(0)
e.g., nwgt = 3
xo(0) = w(0) * xi(N) + w(1) * xi(0) + w(2) * xi(1)
xo(N) = w(0) * xi(N - 1) + w(1) * xi(N) + w(2) * xi(0)
e.g., nwgt = 4
xo(0) = w(0) * xi(N) + w(1) * xi(0) + w(2) * xi(1) + w(3) * xi(2)
xo(N) = w(0) * xi(N - 1) + w(1) * xi(N) + w(2) * xi(1) + w(3) * xi(2)
opt = 0 : set unsmoothed beginning and end pts to x@_FillValue (most common)
e.g., nwgt = 2
xo(0) = w(0) * xi(0) + w(1) * xi(1)
xo(N) = xi@_FillValue
e.g., nwgt = 3
xo(0) = xi@_FillValue
xo(1) = w(0) * xi(0) + w(1) * xi(1) + w(2) * xi(2)
xi(N) = xi@_FillValue
e.g., nwgt = 4
xo(0) = xi@_FillValue
xo(1) = w(0) * xi(0) + w(1) * xi(1) + w(2) * xi(2) + w(3) * xi(3)
xo(N - 2) = w(0) * xi(N - 3) + w(1) * xi(N - 2) + w(2) * xi(N - 1) + w(3) * xi(N)
xo(N - 1) = xi@_FillValue
xo(N) = xi@_FillValue
opt > 0 : utilize reflective (symmetric) conditions
e.g., nwgt = 2
xo(0) = w(0) * xi(0) + w(1) * xi(1)
xo(N) = w(0) * xi(N) + w(0) * xi(0)
e.g., nwgt = 3
xo(0) = w(0) * xi(1) + w(1) * xi(0) + w(2) * xi(1)
xo(N) = w(0) * xi(N - 1) + w(1) * xi(N) + w(2) * xi(N - 1)
e.g., nwgt = 4
xo(0) = w(0) * xi(1) + w(1) * xi(0) + w(2) * xi(1) + w(3) * xi(2)
xo(N) = w(0) * xi(N - 1) + w(1) * xi(N) + w(2) * xi(0) + w(3) * xi(2)
skipMissing - if true, missing timesteps will not be included in the average
and the average will be done on the non-missing times
VisADException - On badness
public static FieldImpl timeRunningAverage(FieldImpl grid,
int nave,
int opt)
throws VisADException
grid - grid to averagenave - number of steps to averageopt - options for end points
In the following:
N = {last point in the series, i.e. N = npts - 1}
xi = {input series}
xo = {output series}
opt < 0 : utilize cyclic conditions
e.g., nave = 2
xo(0) = (xi(0) + xi(1))/nave
xo(N) = (xi(N) + xi(0))/nave
e.g., nave = 3
xo(0) = (xi(N) + xi(0) + xi(1)) / nave
xo(N) = (xi(N - 1) + xi(N) + xi(0)) / nave
e.g., nave = 4
xo(0) = (xi(N) + xi(0) + xi(1) + xi(2)) / nave
xo(N) = (xi(N - 1) + xi(N) + xi(0) + xi(1)) / nave
opt = 0 : set unsmoothed beginning and end pts to x@_FillValue [most common]
e.g., nave = 2
xo(0) = (xi(0) + xi(1)) / nave
xo(N) = xi@_FillValue
e.g., nave = 3
xo(0) = xi@_FillValue
xo(1) = (xi(0) + xi(1) + xi(2)) / nave
xi(N) = xi@_FillValue
e.g., nave = 4
xo(0) = xi@_FillValue
xo(1) = (xi(0) + xi(1) + xi(2) + xi(3)) / nave
xo(N - 2) = (xi(N - 3) + xi(N - 2) + xi(N - 1) + xi(N)) / nave
xo(N - 1)= xi@_FillValue
xo(N)= xi@_FillValue
opt > 0 : utilize reflective (symmetric) conditions
e.g., nave = 2
xo(0) = (xi(0) + xi(1)) / nave
xo(N) = (xi(N) + xi(N-1)) / nave
e.g., nave = 3
xo(0) = (xi(1) + xi(0) + xi(1)) / nave
xo(N) = (xi(N - 1) + xi(N) + xi(N-1)) / nave
e.g., nave = 4
xo(0) = (xi(2) + xi(1) + xi(0) + xi(1)) / nave
xo(N) = (xi(N - 1) + xi(N) + xi(N - 1) + xi(N - 2)) / nave
VisADException - On badness
public static FieldImpl timeRunningAverage(FieldImpl grid,
int nave,
int opt,
boolean skipMissing)
throws VisADException
grid - grid to averagenave - number of steps to averageopt - options for end points
In the following:
N = {last point in the series, i.e. N = npts - 1}
xi = {input series}
xo = {output series}
opt < 0 : utilize cyclic conditions
e.g., nave = 2
xo(0) = (xi(0) + xi(1))/nave
xo(N) = (xi(N) + xi(0))/nave
e.g., nave = 3
xo(0) = (xi(N) + xi(0) + xi(1)) / nave
xo(N) = (xi(N - 1) + xi(N) + xi(0)) / nave
e.g., nave = 4
xo(0) = (xi(N) + xi(0) + xi(1) + xi(2)) / nave
xo(N) = (xi(N - 1) + xi(N) + xi(0) + xi(1)) / nave
opt = 0 : set unsmoothed beginning and end pts to x@_FillValue [most common]
e.g., nave = 2
xo(0) = (xi(0) + xi(1)) / nave
xo(N) = xi@_FillValue
e.g., nave = 3
xo(0) = xi@_FillValue
xo(1) = (xi(0) + xi(1) + xi(2)) / nave
xi(N) = xi@_FillValue
e.g., nave = 4
xo(0) = xi@_FillValue
xo(1) = (xi(0) + xi(1) + xi(2) + xi(3)) / nave
xo(N - 2) = (xi(N - 3) + xi(N - 2) + xi(N - 1) + xi(N)) / nave
xo(N - 1)= xi@_FillValue
xo(N)= xi@_FillValue
opt > 0 : utilize reflective (symmetric) conditions
e.g., nave = 2
xo(0) = (xi(0) + xi(1)) / nave
xo(N) = (xi(N) + xi(N-1)) / nave
e.g., nave = 3
xo(0) = (xi(1) + xi(0) + xi(1)) / nave
xo(N) = (xi(N - 1) + xi(N) + xi(N-1)) / nave
e.g., nave = 4
xo(0) = (xi(2) + xi(1) + xi(0) + xi(1)) / nave
xo(N) = (xi(N - 1) + xi(N) + xi(N - 1) + xi(N - 2)) / nave
skipMissing - if true, missing timesteps will not be included in the average
and the average will be done on the non-missing times
VisADException - On badness
public static FieldImpl sumOverTime(FieldImpl grid,
boolean makeTimes)
throws VisADException
grid - grid to analyzemakeTimes - If true then make a time field with the range
being the same computed value. If false then just
return a single field of the computed values
VisADException - On badness
public static FieldImpl minOverTime(FieldImpl grid,
boolean makeTimes)
throws VisADException
grid - grid to analyzemakeTimes - If true then make a time field with the range
being the same computed value. If false then just
return a single field of the computed values
VisADException - On badness
public static FieldImpl maxOverTime(FieldImpl grid,
boolean makeTimes)
throws VisADException
grid - grid to analyzemakeTimes - If true then make a time field with the range
being the same computed value. If false then just
return a single field of the computed values
VisADException - On badness
public static FieldImpl applyFunctionOverTime(FieldImpl grid,
String function,
boolean makeTimes)
throws VisADException
grid - grid to averagefunction - One of the FUNC_ enumsmakeTimes - If true then make a time field with the range
being the same computed value. If false then just
return a single field of the computed values
VisADException - On badness
public static FieldImpl applyFunctionOverTime(FieldImpl grid,
String function,
int startIdx,
int idxStride,
boolean makeTimes)
throws VisADException
grid - grid to apply function tofunction - One of the FUNC_ enumsstartIdx - starting time indexidxStride - stride for time indexmakeTimes - If true then make a time field with the range
being the same computed value. If false then just
return a single field of the computed values
VisADException - On badness
public static FlatField applyFunctionOverGrids(FlatField[] grids,
String function)
throws VisADException
grids - grids to apply function tofunction - One of the FUNC_ enums
VisADException - On badness
public static FieldImpl applyFunctionOverMembers(FieldImpl grid,
String statThreshold,
String exptdLoBoundIn,
String exptdUpBoundIn,
String function)
throws VisADException
grid - grid to averagestatThreshold - percent for FUNC_PRCNTL, probability threshold for FUNC_UPROBexptdLoBoundIn - _more_exptdUpBoundIn - _more_function - One of the FUNC_ enums
VisADException - On badness
public static FieldImpl applyFunctionOverMembers(FieldImpl grid,
float statThreshold,
float exptdLoBound,
float exptdUpBound,
String function)
throws VisADException
grid - grid to averagestatThreshold - percent for FUNC_PRCNTL, probability threshold for FUNC_UPROBexptdLoBound - _more_exptdUpBound - _more_function - One of the FUNC_ enums
VisADException - On badness
public static FieldImpl applyFunctionOverMembers(FieldImpl grid,
String function)
throws VisADException
grid - grid to averagefunction - One of the FUNC_ enums
VisADException - On badness
public static FieldImpl applyFunctionOverLevels(FieldImpl grid,
String function)
throws VisADException
grid - grid to averagefunction - One of the FUNC_ enums
VisADException - On badness
public static FieldImpl applyFunctionToLevels(FieldImpl grid,
String function)
throws VisADException
grid - grid to averagefunction - One of the FUNC_ enums
VisADException - On badness
public static FieldImpl applyFunctionToAxis(FieldImpl grid,
String function,
String axis)
throws VisADException
grid - grid to applyfunction - One of the FUNC_ enumerationsaxis - the axis to apply the function (AXIS_X or AXIS_Y)
VisADException - On badness
public static FieldImpl ddx(FieldImpl grid)
throws VisADException,
RemoteException
grid - grid to parialize
RemoteException - Java RMI error
VisADException - VisAD Error
public static FieldImpl ddy(FieldImpl grid)
throws VisADException,
RemoteException
grid - grid to parialize
RemoteException - Java RMI error
VisADException - VisAD Error
public static FieldImpl partial(FieldImpl grid,
int domainIndex)
throws VisADException,
RemoteException
grid - grid to parializedomainIndex - index of variable to use for derivative
RemoteException - Java RMI error
VisADException - VisAD Error
public static float evaluatePercentile(float[] values,
int begin,
int length,
double p)
throws VisADException
values - the valuesbegin - the starting indexlength - number of pointsp - the percentage
VisADException - VisAD Errorpublic static float evaluateMode(float[] data)
data - _more_
public static float evaluateUProbability(float[] values,
float pValue,
int length)
throws VisADException
values - the values, within the userspecified range, at a given grid point
from an ensemble model runpValue - the threshold used in the probability calculation - P(value < pValue)length - number of ensemble members (might not be the same as values.length)
VisADException - VisAD Error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||