ucheck

dendrocat.ucheck(quantity, unit)[source]

Check if a quantity already has units, and attempt conversion if so.

Parameters:
quantity : scalar, array, or Unit

The quantity to check for units. If scalar, units will assumed to be the same as in the “unit” argument.

unit : Unit

The unit to check against. If the “quantity” argument already has an associated unit, a conversion will be attempted.