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_constantis 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_gridis used as the altitude of thep0grid. The extrapolation outside of this range simply uses the formalism of the selecthydrostatic_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 thealt_griddirectly 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 toself.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
HydrostaticPressureOptionfor valid options. Defaults to"HydrostaticEquation"[IN]