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 below limit_low, output is set to limit_low. And the same is performed with respect to limit_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 to self.verbosity [IN]