radarx.retrieve.coldpool.buoyancy#
- radarx.retrieve.coldpool.buoyancy(theta_v, reference, *, condensate=None)[source]#
Buoyancy from the virtual potential temperature.
\(B = g (\theta_v - \overline{\theta_v}) / \overline{\theta_v} - g r_c\), the standard form with hydrometeor loading (e.g. Markowski and Richardson [1]; equation number not checked against the book). \(g\) = 9.80665 m s-2 is the standard gravity, a radarx choice of constant.
- Parameters:
theta_v (
xarray.DataArray) – Virtual potential temperature (K).reference (
xarray.DataArrayorfloat) – Reference (environmental) virtual potential temperature, broadcast againsttheta_v.condensate (
xarray.DataArrayorfloat, optional) – Condensate mixing ratio (kg kg-1) for the hydrometeor loading. Without it the buoyancy of precipitating air is overestimated (the cold-pool intensity underestimated).
- Returns:
xarray.DataArray–buoyancy(m s-2) on the coordinates oftheta_v.
References