abs_lookupAdapt

Workspace.abs_lookupAdapt(self: pyarts.arts._Workspace, abs_lookup: pyarts.arts.WorkspaceVariable | pyarts.arts.GasAbsLookup | None = self.abs_lookup, abs_lookup_is_adapted: pyarts.arts.WorkspaceVariable | pyarts.arts.Index | None = self.abs_lookup_is_adapted, abs_species: pyarts.arts.WorkspaceVariable | pyarts.arts.ArrayOfArrayOfSpeciesTag | None = self.abs_species, f_grid: pyarts.arts.WorkspaceVariable | pyarts.arts.Vector | None = self.f_grid, verbosity: pyarts.arts.WorkspaceVariable | pyarts.arts.Verbosity | None = self.verbosity) None

Adapts a gas absorption lookup table to the current calculation.

The lookup table can contain more species and more frequencies than are needed for the current calculation. This method cuts down the table in memory, so that it contains just what is needed. Also, the species in the table are brought in the same order as the species in the current calculation.

Of course, the method also performs quite a lot of checks on the table. If something is not ok, a runtime error is thrown.

The method sets a flag abs_lookup_is_adapted to indicate that the table has been checked and that it is ok. Never set this by hand, always use this method to set it!

Author(s): Stefan Buehler

Parameters:
  • abs_lookup (GasAbsLookup, optional) – An absorption lookup table. See abs_lookup, defaults to self.abs_lookup [INOUT]

  • abs_lookup_is_adapted (Index, optional) – Flag to indicate whether abs_lookupAdapt() has already been. See abs_lookup_is_adapted, defaults to self.abs_lookup_is_adapted [OUT]

  • abs_species (ArrayOfArrayOfSpeciesTag, optional) – Tag groups for gas absorption. See abs_species, defaults to self.abs_species [IN]

  • f_grid (Vector, optional) – The frequency grid for monochromatic pencil beam calculations. See f_grid, defaults to self.f_grid [IN]

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