ARTS built-in documentation server

Workspace Method NumericClip

Description

Clipping of a Numeric.

The input value is copied to the output one (that can be same WSV)
but ensures that *out* is inside the range [limit_low,limit_high].
When the input value is below *limit_low*, *out* is set to *limit_low*.
And the same is performed with respect to *limit_high*.

Authors: Patrick Eriksson

Synopsis

NumericClip( out, in, limit_low, limit_high )

Variables

GOUTout(Numeric)Output Numeric.
GINin(Numeric)Input Numeric.
GINlimit_low(Numeric, Default: -Inf)Lower limit for clipping.
GINlimit_high(Numeric, Default: Inf)Upper limit for clipping.