ARTS built-in documentation server

Workspace Method Extract

Description

Extract 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

GOUTneedle(ArrayOfIndex, Numeric, Vector, Matrix, Matrix, Tensor3, Tensor4, Tensor4, ArrayOfGriddedField3, GriddedField4, String)Extracted element.
GINhaystack(ArrayOfArrayOfIndex, Vector, ArrayOfVector, ArrayOfMatrix, Tensor3, Tensor4, ArrayOfTensor4, Tensor5, ArrayOfArrayOfGriddedField3, ArrayOfGriddedField4, ArrayOfString)Variable to extract from.
GINindex(Index)Position of the element which should be extracted.