hydromodpy.core.units.scalar#

Helpers to parse scalar values with optional inline units.

Functions

canonical_unit_token(unit)

Lowercase, strip, and remove spaces from a unit string.

parse_scalar_and_unit(value, *, location, ...)

Parse one scalar payload and resolve its unit token.