easyclimate.physics.temperature.potential_temperature¶
Potential Temperature
Functions¶
|
Calculate the potential temperature for dry air. |
|
Calculate the potential temperature for vertical variables. |
Module Contents¶
- easyclimate.physics.temperature.potential_temperature.calc_potential_temperature(temper_data: xarray.DataArray, pressure_data: xarray.DataArray, pressure_data_units: Literal['hPa', 'Pa', 'mbar'], kappa: float = 287 / 1005.7) xarray.DataArray¶
Calculate the potential temperature for dry air.
Uses the Poisson equation to calculation the potential temperature given pressure and temperature.
\[\theta = T \left( \frac{p_0}{p} \right) ^\kappa\]Parameters¶
- temper_data:
xarray.DataArray. Air temperature.
- pressure_data:
xarray.DataArray. The pressure data set.
- pressure_data_units:
str. The unit corresponding to pressure_data value. Optional values are hPa, Pa.
- kappa:
float, default: 287/1005.7. Poisson constant \(\kappa\).
Returns¶
- Potential temperature, units according to
temper_data.
Reference¶
Bolton, D. (1980). The Computation of Equivalent Potential Temperature. Monthly Weather Review, 108(7), 1046-1053. https://journals.ametsoc.org/view/journals/mwre/108/7/1520-0493_1980_108_1046_tcoept_2_0_co_2.xml
- temper_data:
- easyclimate.physics.temperature.potential_temperature.calc_potential_temperature_vertical(temper_data: xarray.DataArray, vertical_dim: str, vertical_dim_units: Literal['hPa', 'Pa', 'mbar'], kappa: float = 287 / 1005.7) xarray.DataArray¶
Calculate the potential temperature for vertical variables.
Uses the Poisson equation to calculation the potential temperature given pressure and temperature.
\[\theta = T \left( \frac{p_0}{p} \right) ^\kappa\]Parameters¶
- temper_data:
xarray.DataArray. Air temperature.
- vertical_dim:
str. Vertical coordinate dimension name.
- vertical_dim_units:
str. The unit corresponding to the vertical p-coordinate value. Optional values are hPa, Pa, mbar.
- kappa:
float, default: 287/1005.7. Poisson constant \(\kappa\).
Returns¶
- Potential temperature, units according to
temper_data.
Reference¶
- temper_data: