NumericClip
- Workspace.NumericClip(self: pyarts.arts._Workspace, output: Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric], input: Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric], limit_low: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = -std::numeric_limits<Numeric>::infinity(), limit_high: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Numeric]] = std::numeric_limits<Numeric>::infinity(), verbosity: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Verbosity]] = self.verbosity) None
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 belowlimit_low
,output
is set tolimit_low
. And the same is performed with respect tolimit_high
.Author(s): Patrick Eriksson
- Parameters:
output (Numeric) – Output Numeric. [OUT]
input (Numeric) – Input Numeric. [IN]
limit_low (Numeric, optional) – Lower limit for clipping. Defaults to
-Inf
[IN]limit_high (Numeric, optional) – Upper limit for clipping. Defaults to
Inf
[IN]verbosity (Verbosity) – ARTS verbosity. See
verbosity
, defaults toself.verbosity
[IN]