radarx.retrieve.coldpool.potential_temperatures#
- radarx.retrieve.coldpool.potential_temperatures(obj, *, temperature='temperature', pressure='pressure', dewpoint='dewpoint', relative_humidity='relative_humidity', n_threads=None, engine='auto')[source]#
Mixing ratio and potential, virtual potential and equivalent potential temperature.
The equivalent potential temperature is Bolton’s [1] eq. (43) with the lifting-condensation-level temperature of his eq. (15) and the vapour pressure of his eq. (10). The coefficients are those of the paper as implemented; they are not checked against the paper (see the module docstring). Mixing ratio, potential and virtual potential temperature are the textbook definitions (\(p_0\) = 1000 hPa, \(R_d / c_{pd}\) = 287.047 / 1005.7), not taken from a table of a cited paper.
- Parameters:
obj (
xarray.Dataset) – Temperature (K) and pressure (Pa), with the dew point (K) or, failing that, the relative humidity (fraction), e.g. a station network fromradarx.io.read_sticknet(), a sounding fromradarx.io.soundingor gridded fields. Without humidity only the potential temperature is finite.temperature, pressure, dewpoint, relative_humidity (
str, optional) – Variable names.n_threads (
int, optional) – Threads for the compiled kernel. Default: all cores.engine (
{"auto", "compiled", "numpy"}, optional) – Kernel implementation.
- Returns:
xarray.Dataset–mixing_ratio,potential_temperature,virtual_potential_temperatureandequivalent_potential_temperatureon the coordinates ofobj.
Notes
Dask. This function computes the dask array: it works on small in-memory data. The input is loaded into memory and the result is held in memory.
References