# total_deformation¶

metpy.calc.total_deformation(u, v, dx=None, dy=None, x_dim=- 1, y_dim=- 2)[source]

Calculate the horizontal total deformation of the horizontal wind.

Parameters
Returns

(…, M, N) xarray.DataArray or pint.Quantity – Total Deformation

Notes

If inputs have more than two dimensions, they are assumed to have either leading dimensions of (x, y) or trailing dimensions of (y, x), depending on the value of dim_order.

Changed in version 1.0: Changed signature from (u, v, dx, dy)