NumericFromVector

Workspace.NumericFromVector(self: pyarts.arts._Workspace, output: pyarts.arts.WorkspaceVariable | pyarts.arts.Numeric, input: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector, op: pyarts.arts.WorkspaceVariable | pyarts.arts.String, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None

Derivs a Numeric from a vector, following selected operation.

The following operations can be selected:

  • "first": Selects the first element of the vector.

  • "last": Selects the last element of the vector.

  • "max": Selects the maximum element of the vector.

  • "min": Selects the minimum element of the vector.

  • "mean": Calculates the mean of the vector.

Author(s): Patrick Eriksson

Parameters:
  • output (Numeric) – Output Numeric. [OUT]

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

  • op (String) – Selected operation. [IN]

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