ARTS built-in documentation server
Workspace Method Extract
Description
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.
Authors: Oliver Lemke
Synopsis
Extract( | needle, haystack, index ) |
Variables
GOUT | needle | (Index, ArrayOfIndex, Numeric, Vector, Matrix, Matrix, Tensor3, Tensor4, Tensor4, GriddedField3, ArrayOfGriddedField3, GriddedField4, String, SingleScatteringData) | Extracted element. |
GIN | haystack | (ArrayOfIndex, ArrayOfArrayOfIndex, Vector, ArrayOfVector, ArrayOfMatrix, Tensor3, Tensor4, ArrayOfTensor4, Tensor5, ArrayOfGriddedField3, ArrayOfArrayOfGriddedField3, ArrayOfGriddedField4, ArrayOfString, ArrayOfSingleScatteringData) | Variable to extract from. |
GIN | index | (Index) | Position of the element which should be extracted. |