ARTS built-in documentation server

Workspace Method Compare

Description

Checks the consistency between two variables.

The two variables are checked to not deviate outside the specified
value (*maxabsdiff*). An error is issued if this is not fulfilled.

The main application of this method is to be part of the test
control files, and then used to check that a calculated value
is consistent with an old, reference, value.

Authors: Oliver Lemke

Synopsis

Compare( var1, var2, maxabsdiff, error_message )

Variables

GINvar1(Numeric, Vector, Matrix, Tensor3, Tensor7, ArrayOfVector, ArrayOfMatrix, GriddedField3)A first variable
GINvar2(Numeric, Vector, Matrix, Tensor3, Tensor7, ArrayOfVector, ArrayOfMatrix, GriddedField3)A second variable
GINmaxabsdiff(Numeric, Default: )Threshold for maximum absolute difference.
GINerror_message(String, Default: "")Additional error message.