GriddedDataCalculate
This program manipulates grid files with data in columns similar to
FunctionsCalculate, see there for more details.
If several inputfiles are given the data columns are copied side by side.
All inputfiles must contain the same grid points.
The columns are enumerated by data0
, data1
, … .
The content of outputfileGriddedData is controlled by outColumn.
The algorithm to compute the output is as follows:
The expressions in outColumn are evaluated once for each grid point of the input.
The variables data0
, data1
, … are replaced by the according values
from the input columns before.
Additional variables are available, e.g. index
, data0rms
,
see dataVariables.
For a simplified handling constants can be defined by name=value
.
It is also possible to estimate parameters in a least squares adjustment.
The leastSquares serves as template for observation equations for every point.
The expression leastSquares is evaluated for each grid point.
The variables data0
, data1
, … are replaced by the according values from the input columns before.
In the next step the parameters are estimated in order to minimize the expressions in leastSquares
in the sense of least squares.
Afterwards grid points are removed if one of the removalCriteria expressions for this grid point evaluates true (not zero).
An extra statistics:outputfile can be generated with one row of data.
For the computation of the outColumn values
all dataVariables are available
(e.g. data3mean
, data4std
) inclusively the constants and
estimated parameters but without the data0
, data1
, … itself.
The variables and the numbering of the columns refers to the outputfileGriddedData.
See also FunctionsCalculate, InstrumentArcCalculate, MatrixCalculate.
Name | Type | Annotation |
---|---|---|
outputfileGriddedData | filename | |
inputfileGriddedData | filename | |
constant | expression | define a constant by name=value |
parameter | expression | define a parameter by name[=value] |
leastSquares | expression | try to minimize the expression by adjustment of the parameters |
removalCriteria | expression | points are removed if one criterion evaluates true. data0 is the first data field. |
longitude | expression | expression |
latitude | expression | expression |
height | expression | expression |
area | expression | expression: e.g. deltaL * 2.0 * sin(deltaB/2.0) * cos(latitude/rho) |
value | expression | expression to compute values (input columns are named data0, data1, ...) |
computeArea | boolean | automatically area computation of rectangular grids (overwrite area) |
R | double | reference radius for ellipsoidal coordinates |
inverseFlattening | double | reference flattening for ellipsoidal coordinates |
statistics | sequence | |
outputfile | filename | matrix with one row, columns are user defined |
outColumn | expression | expression to compute statistics columns, data* are the outputColumns |