hydromodpy.core.units.length#

Length helpers centered on SI (meters).

Functions

convert_payload_to_m(value, *, unit[, label])

Convert one scalar/sequence/mapping payload from unit to meters.

convert_to_m(value, *, unit[, label])

Convert one numeric value from unit to meters.

factor_to_m(unit)

Return multiplicative factor to convert one unit to meters.

format_length_from_m(value_m, *[, unit, ...])

Format one SI length in the requested display unit.

normalize_length_unit(unit)

Normalize one length unit token to a strict canonical form.

parse_to_m(value, *, location[, ...])

Parse scalar + unit payload and convert to meters.