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: