atm_fields_compactAddConstant

Workspace.atm_fields_compactAddConstant(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.Numeric], prepend: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Index]] = 0, condensibles: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.ArrayOfString]] = ArrayOfString{}, verbosity: Optional[Union[pyarts.arts.WorkspaceVariable, pyarts.arts.Verbosity]] = self.verbosity) None

Adds a constant field to atm_fields_compact.

This is handy, e.g., for nitrogen or oxygen. The constant value can be appended or prepended as an additional field to the already existing collection of fields. All dimensions (pressure, latitude, longitude) are filled up, so this works for 1D, 2D, or 3D atmospheres.

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

A list of condensibles can be optionally specified if the VMR of the added species is assuming dry air. The VMR of the added species is then scaled down by the sum of the condensibles’ VMR:

VMR * (1 - VMR_sum_of_condensibles).

For Earth this should be set to [“abs_species-H2O”]

Author(s): Stefan Buehler, Oliver Lemke

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, with constant value. [IN]

  • value (Numeric) – Constant value of additional field. [IN]

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

  • condensibles (ArrayOfString, optional) – List of condensibles used to scale down the VMR of the added species. Defaults to [] [IN]

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