radarx.retrieve.coldpool.cold_pool_intensity#
- radarx.retrieve.coldpool.cold_pool_intensity(buoyancy, *, dim='height', height=None, threshold=0.0, depth=None, bottom=None, n_threads=None, engine='auto')[source]#
Cold-pool intensity \(C = \sqrt{2 \int_0^H (-B)\, dz}\) and depth.
\(C\) is the cold-pool strength of Rotunno et al. [1] (the speed of the density current of depth \(H\) with the same buoyancy integral); Bryan et al. [2] use it to compare simulated squall lines. The integral is evaluated with the trapezoidal rule between valid levels. The cold-pool top is the first level where \(B \ge\)
threshold(linear interpolation); this top criterion, the default threshold of 0 and the example value -0.005 m s-2 are radarx choices, not thresholds of the cited papers (whose definitions of \(H\) differ; not checked against them).- buoyancyxarray.DataArray
Buoyancy (m s-2) with a vertical dimension
dim, e.g. fromcold_pool_perturbation()of a post-storm sounding, or gridded (z,y,x) with any other dimensions (all columns are computed in one kernel call).- dimstr, optional
Vertical dimension. Default
"height".- heightstr or xarray.DataArray, optional
Heights (m) of the levels if not the
dimcoordinate (e.g. a 3-D height coordinate).- thresholdfloat, optional
Buoyancy (m s-2) that marks the top of the cold pool: the depth is the lowest height above the lowest valid level where
B >= threshold(linearly interpolated). Default 0. A slightly negative value (e.g. -0.005) ignores weak deficits above the cold pool.- depthfloat, optional
Integrate over this fixed depth (m) above the lowest valid level instead of searching the top; NaN if the profile is shorter.
- bottomfloat or xarray.DataArray, optional
Ignore levels below this height (m), e.g. the ground. Default: start at the lowest valid level.
- n_threadsint, optional
Threads for the compiled kernel. Default: all cores.
- engine{“auto”, “compiled”, “numpy”}, optional
Kernel implementation.
- xarray.Dataset
cold_pool_intensity(m s-1),cold_pool_depth(m) andcold_pool_top_found(bool) per column. Columns whose lowest level is not negatively buoyant have zero intensity and depth.
Dask. This function computes the dask array: it integrates over the height of the cold pool. The input is loaded into memory and the result is held in memory.