From e3a1b9bee27f03fac6481c0acbbc1b391a14978e Mon Sep 17 00:00:00 2001 From: kgoebber Date: Sat, 5 Oct 2019 22:41:36 -0500 Subject: [PATCH] fix divergence unit requirement --- src/metpy/calc/kinematics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/metpy/calc/kinematics.py b/src/metpy/calc/kinematics.py index 9984e5e42cf..9b3e0ee8a93 100644 --- a/src/metpy/calc/kinematics.py +++ b/src/metpy/calc/kinematics.py @@ -128,9 +128,9 @@ def vorticity(u, v, dx, dy): @exporter.export @preprocess_xarray @ensure_yx_order -@check_units('[speed]', '[speed]', '[length]', '[length]') +@check_units(dx='[length]', dy='[length]') def divergence(u, v, dx, dy): - r"""Calculate the horizontal divergence of the horizontal wind. + r"""Calculate the horizontal divergence of a vector. Parameters ----------