IndexSetToLast
- Workspace.IndexSetToLast(self: pyarts.arts._Workspace, nelem: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index]] = self.nelem, v: Union[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.Vector], verbosity: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Verbosity]] = self.verbosity) None
Set an Index to point towards last position of array-type variables.
This method works as nelemGet, but gives the index number of the last element (which equals nelem-1).
Author(s): Patrick Eriksson, Oliver Lemke
- Parameters:
nelem (Index, optional) – Number of elements of a Vector or Array. See
nelem
, defaults toself.nelem
[OUT]v (ArrayOfAbsorptionLines or ArrayOfAgenda or ArrayOfArrayOfAbsorptionLines or ArrayOfArrayOfGriddedField1 or ArrayOfArrayOfGriddedField2 or ArrayOfArrayOfGriddedField3 or ArrayOfArrayOfIndex or ArrayOfArrayOfMatrix or ArrayOfArrayOfPropagationMatrix or ArrayOfArrayOfRadiationVector or ArrayOfArrayOfScatteringMetaData or ArrayOfArrayOfSingleScatteringData or ArrayOfArrayOfSpeciesTag or ArrayOfArrayOfStokesVector or ArrayOfArrayOfString or ArrayOfArrayOfTensor3 or ArrayOfArrayOfTensor6 or ArrayOfArrayOfTime or ArrayOfArrayOfTransmissionMatrix or ArrayOfArrayOfVector or ArrayOfCIARecord or ArrayOfGriddedField1 or ArrayOfGriddedField2 or ArrayOfGriddedField3 or ArrayOfGriddedField4 or ArrayOfIndex or ArrayOfJacobianTarget or ArrayOfMatrix or ArrayOfPpath or ArrayOfPropagationMatrix or ArrayOfQuantumIdentifier or ArrayOfRadiationVector or ArrayOfRetrievalQuantity or ArrayOfScatteringMetaData or ArrayOfSingleScatteringData or ArrayOfSparse or ArrayOfSpeciesTag or ArrayOfStokesVector or ArrayOfString or ArrayOfSun or ArrayOfTelsemAtlas or ArrayOfTensor3 or ArrayOfTensor4 or ArrayOfTensor5 or ArrayOfTensor6 or ArrayOfTensor7 or ArrayOfTime or ArrayOfTransmissionMatrix or ArrayOfVector or ArrayOfXsecRecord or Vector) – The method is defined for these groups. [IN]
verbosity (Verbosity) – ARTS verbosity. See
verbosity
, defaults toself.verbosity
[IN]