import dascore as dc
= dc.get_example_patch()
patch
# Set complex units
= patch.set_units("km/h", distance="km", time="h")
complex_units
# Simplify to base units (m/s, m, s)
= complex_units.simplify_units() simplified
simplify_units
simplify_units(
patch: Patch ,
)-> ‘PatchType’
Simplify the units contained by the patch to base metric units.
All data and coordinate units will be converted to their base units and corresponding data/labels multiplied by a conversion factor.