check_units

metpy.units.check_units(*units_by_pos, **units_by_name)[source]

Create a decorator to check units of function arguments.