Select

Workspace.Select(self: pyarts.arts._Workspace, needles: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfAbsorptionLines | pyarts.arts.ArrayOfAgenda | pyarts.arts.ArrayOfArrayOfAbsorptionLines | pyarts.arts.ArrayOfArrayOfGriddedField1 | pyarts.arts.ArrayOfArrayOfGriddedField2 | pyarts.arts.ArrayOfArrayOfGriddedField3 | pyarts.arts.ArrayOfArrayOfIndex | pyarts.arts.ArrayOfArrayOfMatrix | pyarts.arts.ArrayOfArrayOfPropagationMatrix | pyarts.arts.ArrayOfArrayOfRadiationVector | pyarts.arts.ArrayOfArrayOfScatteringMetaData | pyarts.arts.ArrayOfArrayOfSingleScatteringData | pyarts.arts.ArrayOfArrayOfSpeciesTag | pyarts.arts.ArrayOfArrayOfStokesVector | pyarts.arts.ArrayOfArrayOfString | pyarts.arts.ArrayOfArrayOfTensor3 | pyarts.arts.ArrayOfArrayOfTensor6 | pyarts.arts.ArrayOfArrayOfTime | pyarts.arts.ArrayOfArrayOfTransmissionMatrix | pyarts.arts.ArrayOfArrayOfVector | pyarts.arts.ArrayOfCIARecord | pyarts.arts.ArrayOfGriddedField1 | pyarts.arts.ArrayOfGriddedField2 | pyarts.arts.ArrayOfGriddedField3 | pyarts.arts.ArrayOfGriddedField4 | pyarts.arts.ArrayOfIndex | pyarts.arts.ArrayOfJacobianTarget | pyarts.arts.ArrayOfMatrix | pyarts.arts.ArrayOfPpath | pyarts.arts.ArrayOfPropagationMatrix | pyarts.arts.ArrayOfQuantumIdentifier | pyarts.arts.ArrayOfRadiationVector | pyarts.arts.ArrayOfRetrievalQuantity | pyarts.arts.ArrayOfScatteringMetaData | pyarts.arts.ArrayOfSingleScatteringData | pyarts.arts.ArrayOfSparse | pyarts.arts.ArrayOfSpeciesTag | pyarts.arts.ArrayOfStokesVector | pyarts.arts.ArrayOfString | pyarts.arts.ArrayOfSun | pyarts.arts.ArrayOfTelsemAtlas | pyarts.arts.ArrayOfTensor3 | pyarts.arts.ArrayOfTensor4 | pyarts.arts.ArrayOfTensor5 | pyarts.arts.ArrayOfTensor6 | pyarts.arts.ArrayOfTensor7 | pyarts.arts.ArrayOfTime | pyarts.arts.ArrayOfTransmissionMatrix | pyarts.arts.ArrayOfVector | pyarts.arts.ArrayOfXsecRecord | pyarts.arts.Matrix | pyarts.arts.Sparse | pyarts.arts.Vector, haystack: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfAbsorptionLines | pyarts.arts.ArrayOfAgenda | pyarts.arts.ArrayOfArrayOfAbsorptionLines | pyarts.arts.ArrayOfArrayOfGriddedField1 | pyarts.arts.ArrayOfArrayOfGriddedField2 | pyarts.arts.ArrayOfArrayOfGriddedField3 | pyarts.arts.ArrayOfArrayOfIndex | pyarts.arts.ArrayOfArrayOfMatrix | pyarts.arts.ArrayOfArrayOfPropagationMatrix | pyarts.arts.ArrayOfArrayOfRadiationVector | pyarts.arts.ArrayOfArrayOfScatteringMetaData | pyarts.arts.ArrayOfArrayOfSingleScatteringData | pyarts.arts.ArrayOfArrayOfSpeciesTag | pyarts.arts.ArrayOfArrayOfStokesVector | pyarts.arts.ArrayOfArrayOfString | pyarts.arts.ArrayOfArrayOfTensor3 | pyarts.arts.ArrayOfArrayOfTensor6 | pyarts.arts.ArrayOfArrayOfTime | pyarts.arts.ArrayOfArrayOfTransmissionMatrix | pyarts.arts.ArrayOfArrayOfVector | pyarts.arts.ArrayOfCIARecord | pyarts.arts.ArrayOfGriddedField1 | pyarts.arts.ArrayOfGriddedField2 | pyarts.arts.ArrayOfGriddedField3 | pyarts.arts.ArrayOfGriddedField4 | pyarts.arts.ArrayOfIndex | pyarts.arts.ArrayOfJacobianTarget | pyarts.arts.ArrayOfMatrix | pyarts.arts.ArrayOfPpath | pyarts.arts.ArrayOfPropagationMatrix | pyarts.arts.ArrayOfQuantumIdentifier | pyarts.arts.ArrayOfRadiationVector | pyarts.arts.ArrayOfRetrievalQuantity | pyarts.arts.ArrayOfScatteringMetaData | pyarts.arts.ArrayOfSingleScatteringData | pyarts.arts.ArrayOfSparse | pyarts.arts.ArrayOfSpeciesTag | pyarts.arts.ArrayOfStokesVector | pyarts.arts.ArrayOfString | pyarts.arts.ArrayOfSun | pyarts.arts.ArrayOfTelsemAtlas | pyarts.arts.ArrayOfTensor3 | pyarts.arts.ArrayOfTensor4 | pyarts.arts.ArrayOfTensor5 | pyarts.arts.ArrayOfTensor6 | pyarts.arts.ArrayOfTensor7 | pyarts.arts.ArrayOfTime | pyarts.arts.ArrayOfTransmissionMatrix | pyarts.arts.ArrayOfVector | pyarts.arts.ArrayOfXsecRecord | pyarts.arts.Matrix | pyarts.arts.Sparse | pyarts.arts.Vector | object, needleindexes: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfIndex, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None

Method to select some elements from one array and copy them to a new array. (Works also for vectors.)

This works also for higher dimensional objects, where the selection is always performed in the first dimension.

If needleindexes is set to [-1], all elements are copied. For example:

Select(y,x,[0,3])

will select the first and fourth row of matrix x and copy them to the output matrix y.

Note that it is even safe to use this method if needles and haystack are the same variable.

Author(s): Oliver Lemke

Parameters: