ClimoDataArrayAccessor.to_units¶
- ClimoDataArrayAccessor.to_units(units, context='climo')[source]¶
Return a copy converted to the desired units.
- Parameters
units (str or
pint.Unit
) – The destination units. Strings are parsed withparse_units
.context (str or
pint.Context
, optional) – The pint context. Default is the ClimoPy context'climo'
(seeureg
for details).