ARTS built-in documentation server

Workspace Method VectorClip


Clipping of a vector.

The input vector is copied to the output one (that can be same WSV)
but ensures that all values in *out* are inside the range [limit_low,
limit_high]. Where the input vector is below *limit_low*, *out* is set
to *limit_low*. And the same is performed with respect to *limit_high*.
That is, the method works as NumericClip for each element of the

The method adopts the length of *out* when needed.

Authors: Patrick Eriksson


VectorClip( out, in, limit_low, limit_high )


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