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.

NameTypeAnnotation
outputfileGriddedData
filename
inputfileGriddedData
filename
constant
expressiondefine a constant by name=value
parameter
expressiondefine a parameter by name[=value]
leastSquares
expressiontry to minimize the expression by adjustment of the parameters
removalCriteria
expressionpoints are removed if one criterion evaluates true. data0 is the first data field.
longitude
expressionexpression
latitude
expressionexpression
height
expressionexpression
area
expressionexpression: e.g. deltaL * 2.0 * sin(deltaB/2.0) * cos(latitude/rho)
value
expressionexpression to compute values (input columns are named data0, data1, ...)
computeArea
booleanautomatically area computation of rectangular grids (overwrite area)
R
doublereference radius for ellipsoidal coordinates
inverseFlattening
doublereference flattening for ellipsoidal coordinates
statistics
sequence
outputfile
filenamematrix with one row, columns are user defined
outColumn
expressionexpression to compute statistics columns, data* are the outputColumns