atm_fieldHydrostaticPressure

Workspace.atm_fieldHydrostaticPressure(self, atm_field: AtmField = self.atm_field, gravity_operator: NumericTernaryOperator = self.gravity_operator, alt_grid: AscendingGrid = self.alt_grid, p0: GeodeticField2 | Numeric, fixed_specific_gas_constant: Numeric = -1, fixed_atmospheric_temperature: Numeric = -1, hydrostatic_option: String = HydrostaticEquation) → None

Add the hydrostatic pressure to the atmospheric field

The field must already be able to compute temperature as a function of altitude, latitude, and longitude.

If a positive fixed_specific_gas_constant is not provided, the field must also consist of correct volume mixing ratios so that the mass of an average molecule can be computed.

The first altitude in alt_grid is used as the altitude of the p0 grid. The extrapolation outside of this range simply uses the formalism of the select hydrostatic_option.

Note

The gradient changes only at the grid points of the alt_grid. Please make it dense enough to avoid missing features. A recommendation is to extract the alt_grid directly from the temperature field.

Also be aware that missing VMRs for important species, e.g., \(\textrm{N}_2\) or \(\textrm{O}_2\), will lead to incorrect results. The mean molecular mass need these VMRs, so if the VMRs are missing, the pressure will not be correct either.

Author: Richard Larsson

Parameters:
  • atm_field (~pyarts3.arts.AtmField, optional) – An atmospheric field in ARTS, this is the main atmospheric data structure in ARTS. Defaults to self.atm_field. [INOUT]

  • gravity_operator (~pyarts3.arts.NumericTernaryOperator, optional) – The gravity operator. Defaults to self.gravity_operator. [IN]

  • alt_grid (~pyarts3.arts.AscendingGrid, optional) – An ascending list of alt. Often related to a field or a profile. Defaults to self.alt_grid. [IN]

  • p0 (GeodeticField2 | Numeric) – Lowest altitude pressure field. \(P_0\) above. [IN]

  • fixed_specific_gas_constant (~pyarts3.arts.Numeric, optional) – Specific gas constant if larger than 0. Defaults to -1 [IN]

  • fixed_atmospheric_temperature (~pyarts3.arts.Numeric, optional) – Constant atmospheric temperature if larger than 0. Defaults to -1 [IN]

  • hydrostatic_option (~pyarts3.arts.String, optional) – Computational option for levels. See HydrostaticPressureOption for valid options. Defaults to "HydrostaticEquation" [IN]