VectorInsertGridPoints

Workspace.VectorInsertGridPoints(self: pyarts.arts._Workspace, output: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector, input: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector, points: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None

Insert some additional points into a grid.

This method can for example be used to add line center frequencies to a regular frequency grid. If the original grid is [1,2,3], and the additional points are [2.2,2.4], the result will be [1,2,2.2,2.4,3].

It is assumed that the original grid is sorted, otherwise a runtime error is thrown. The vector with the points to insert does not have to be sorted. If some of the input points are already in the grid, these points are not inserted again. New points outside the original grid are appended at the appropriate end. Input vector and output vector can be the same.

Generic output:
  • Vector : The new grid vector.

Generic input:
  • Vector : The original grid vector.

  • Vector : The points to insert.

Author(s): Stefan Buehler

Parameters:
  • output (Vector) – The new grid vector. [OUT]

  • input (Vector) – The original grid vector. [IN]

  • points (Vector) – The points to insert. [IN]

  • verbosity (Verbosity) – ARTS verbosity. See verbosity, defaults to self.verbosity [IN]