atm_fields_compactAddSpecies

Workspace.atm_fields_compactAddSpecies(self: pyarts.arts._Workspace, atm_fields_compact: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.GriddedField4]] = self.atm_fields_compact, name: Union[pyarts.arts.WorkspaceVariable, pyarts.arts.String], value: Union[pyarts.arts.WorkspaceVariable, pyarts.arts.GriddedField3], prepend: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index]] = 0, verbosity: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Verbosity]] = self.verbosity) None

Adds a field to atm_fields_compact, with interpolation.

This method appends or prepends a GriddedField3 to atm_fields_compact. The GriddedField3 is interpolated upon the grid of atm_fields_compact. A typical use case for this method may be to add a climatology of some gas when this gas is needed for radiative transfer calculations, but not yet present in atm_fields_compact. One case where this happens is when using the Chevalier91L dataset for infrared simulations.

The grids in atm_fields_compact must fully encompass the grids in the GriddedField3 to be added, for interpolation to succeed. If this is not the case, a RuntimeError is thrown.

The passed name of the field has to be in accordance with the tagging structure described for atm_fields_compact.

Author(s): Gerrit Holl

Parameters:
  • atm_fields_compact (GriddedField4, optional) – A compact set of atmospheric fields on a common set of grids. See atm_fields_compact, defaults to self.atm_fields_compact [INOUT]

  • name (String) – Name of additional atmospheric field. [IN]

  • value (GriddedField3) – Value of additional atmospheric field. [IN]

  • prepend (Index, optional) – 0 = Append to the end, 1 = insert at the beginning. Defaults to 0 [IN]

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