VectorCrop

Workspace.VectorCrop(self: pyarts.arts._Workspace, output: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector, input: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector, min_value: pyarts.arts.WorkspaceVariable | pyarts.arts.Numeric | None = -99e99, max_value: pyarts.arts.WorkspaceVariable | pyarts.arts.Numeric | None = 99e99, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None

Keeps only values of a vector inside the specified range.

All values outside the range [min_value,max-value] are removed. Note the default values, that basically should act as -+Inf.

The result can either be stored in the same or another vector.

Author(s): Patrick Eriksson

Parameters:
  • output (Vector) – Cropped vector. [OUT]

  • input (Vector) – Original vector. [IN]

  • min_value (Numeric, optional) – Minimum value to keep. Defaults to -99e99 [IN]

  • max_value (Numeric, optional) – Maximum value to keep. Defaults to 99e99 [IN]

  • verbosity (Verbosity) – ARTS verbosity. See verbosity, defaults to self.verbosity [IN]