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
GriddedField3toatm_fields_compact. TheGriddedField3is interpolated upon the grid ofatm_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 inatm_fields_compact. One case where this happens is when using the Chevalier91L dataset for infrared simulations.The grids in
atm_fields_compactmust fully encompass the grids in theGriddedField3to be added, for interpolation to succeed. If this is not the case, a RuntimeError is thrown.The passed
nameof the field has to be in accordance with the tagging structure described foratm_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 toself.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 toself.verbosity[IN]