convert_units

method of dascore.core.coords.BaseCoord source

convert_units(
    self ,
    units ,
)-> ‘Self’

Convert from one unit to another. Set units if None are set.

A coordinate already carrying exactly these units – magnitude included, so 100 cm is not m – returns itself, letting a caller detect a conversion with nothing to do by identity.