abs_linesRemoveLines

Workspace.abs_linesRemoveLines(self: pyarts.arts._Workspace, abs_lines: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfAbsorptionLines | None = self.abs_lines, lower_frequency: pyarts.arts.WorkspaceVariable | pyarts.arts.Numeric | None = -1e99, upper_frequency: pyarts.arts.WorkspaceVariable | pyarts.arts.Numeric | None = 1e99, lower_intensity: pyarts.arts.WorkspaceVariable | pyarts.arts.Numeric | None = 0, safe: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = 1, flip_flims: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = 0, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None

Remove lines abs_lines outside of specifications

The specifications are:
  • The lower frequency bound (all lines of this frequency or higher may be kept)

  • The upper frequency bound (all lines of this frequency or lower may be kept)

  • The lower intensity bound (all lines with lower intensity may be removed)

If safe evaluates true, all lines in an absorption band must fail the above tests to be removed

The frequency filtering can be reversed, from keeping upper_frequency to lower_frequency, to instead remove lines inside the range by setting flip_flims to 1.

The method abs_linesRemoveEmptyBands() is internally applied after the filtering.

Author(s): Richard Larsson

Parameters:
  • abs_lines (ArrayOfAbsorptionLines, optional) – A list of spectral line data. See abs_lines, defaults to self.abs_lines [INOUT]

  • lower_frequency (Numeric, optional) – The lower frequency bound. Defaults to -1e99 [IN]

  • upper_frequency (Numeric, optional) – The upper frequency bound. Defaults to 1e99 [IN]

  • lower_intensity (Numeric, optional) – The lower intensity bound. Defaults to 0 [IN]

  • safe (Index, optional) – Remove only lines from a band if all lines of a band fail. Defaults to 1 [IN]

  • flip_flims (Index, optional) – Reverse the frequecy filtering, see above. Defaults to 0 [IN]

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