Extract
- Workspace.Extract(self: pyarts.arts._Workspace, needle: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfGriddedField3 | pyarts.arts.ArrayOfIndex | pyarts.arts.ArrayOfSingleScatteringData | pyarts.arts.GriddedField2 | pyarts.arts.GriddedField3 | pyarts.arts.GriddedField4 | pyarts.arts.Index | pyarts.arts.Matrix | pyarts.arts.Numeric | pyarts.arts.QuantumIdentifier | pyarts.arts.SingleScatteringData | pyarts.arts.String | pyarts.arts.TelsemAtlas | pyarts.arts.Tensor3 | pyarts.arts.Tensor4 | pyarts.arts.Vector, haystack: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfArrayOfGriddedField3 | pyarts.arts.ArrayOfArrayOfIndex | pyarts.arts.ArrayOfArrayOfSingleScatteringData | pyarts.arts.ArrayOfGriddedField2 | pyarts.arts.ArrayOfGriddedField3 | pyarts.arts.ArrayOfGriddedField4 | pyarts.arts.ArrayOfIndex | pyarts.arts.ArrayOfMatrix | pyarts.arts.ArrayOfQuantumIdentifier | pyarts.arts.ArrayOfSingleScatteringData | pyarts.arts.ArrayOfString | pyarts.arts.ArrayOfTelsemAtlas | pyarts.arts.ArrayOfTensor4 | pyarts.arts.ArrayOfVector | pyarts.arts.Tensor3 | pyarts.arts.Tensor4 | pyarts.arts.Tensor5 | pyarts.arts.Vector, index: pyarts.arts.WorkspaceVariable | pyarts.arts.Index, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None
Extracts an element from an array.
Copies the element with the given Index from the input variable to the output variable.
For a Tensor3 as an input, it copies the page with the given Index from the input Tensor3 variable to the output Matrix.
In other words, the selection is always done on the first dimension.
Author(s): Oliver Lemke
- Parameters:
needle (Index or ArrayOfIndex or Numeric or Vector or Matrix or Matrix or Tensor3 or Tensor4 or Tensor4 or GriddedField2 or GriddedField3 or ArrayOfGriddedField3 or GriddedField4 or String or SingleScatteringData or ArrayOfSingleScatteringData or TelsemAtlas or QuantumIdentifier) – Extracted element. [OUT]
haystack (ArrayOfIndex or ArrayOfArrayOfIndex or Vector or ArrayOfVector or ArrayOfMatrix or Tensor3 or Tensor4 or ArrayOfTensor4 or Tensor5 or ArrayOfGriddedField2 or ArrayOfGriddedField3 or ArrayOfArrayOfGriddedField3 or ArrayOfGriddedField4 or ArrayOfString or ArrayOfSingleScatteringData or ArrayOfArrayOfSingleScatteringData or ArrayOfTelsemAtlas or ArrayOfQuantumIdentifier) – Variable to extract from. [IN]
index (Index) – Position of the element which should be extracted. [IN]
verbosity (Verbosity) – ARTS verbosity. See
verbosity
, defaults toself.verbosity
[IN]