radarx.retrieve.coldpool.baroclinic_generation#

radarx.retrieve.coldpool.baroclinic_generation(buoyancy, *, x='x', y='y', u=None, v=None, storm_motion=(0.0, 0.0), n_threads=None, engine='auto')[source]#

Baroclinic generation of horizontal vorticity, \(\partial B / \partial y\) and \(-\partial B / \partial x\).

The Boussinesq vorticity equations whose cross-section form is \(\partial\eta/\partial t = -\partial B/\partial x\) in Rotunno et al. [1] (equation number not checked against the paper). The streamwise/crosswise split follows the streamwise-vorticity concept of Davies-Jones [2]; the projection onto the storm-relative wind is the radarx implementation.

buoyancyxarray.DataArray

Buoyancy (m s-2) on a grid with horizontal dimensions y and x (coordinates in m), and any others (height, time), e.g. buoyancy(theta_v, reference) of a radarx grid, or \(g\,\Delta T / T\) of the accumulated evaporative cooling of radarx.retrieve.integrate_evaporation(). A vertical cross-section without y gives only \(-\partial B / \partial x\).

x, ystr, optional

Horizontal dimensions. Default "x" and "y".

u, vxarray.DataArray, optional

Wind components along x and y (m s-1), e.g. multi-Doppler winds, broadcastable against buoyancy. With them the generation is split into streamwise and crosswise parts relative to the storm-relative wind.

storm_motiontuple of float or xarray.Dataset, optional

Storm motion (cx, cy) (m s-1) subtracted from u and v, or a Dataset with u and v (e.g. radarx.retrieve.bunkers_storm_motion()). Default (0, 0).

n_threadsint, optional

Threads for the compiled kernel. Default: all cores.

engine{“auto”, “compiled”, “numpy”}, optional

Kernel implementation.

xarray.Dataset

dB_dx and dB_dy (s-2), the generation rates vorticity_x_generation (\(\partial B/\partial y\)), vorticity_y_generation (\(-\partial B/\partial x\)) and horizontal_vorticity_generation (their magnitude), all in s-2, and, with winds, streamwise_vorticity_generation and crosswise_vorticity_generation (s-2).

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.