act.utils.ChangeUnits#

class act.utils.ChangeUnits(ds)[source]#

Class for updating units in the dataset. Data values and units attribute are updated in place. Coordinate variables can not be updated in place. Must use new returned dataset when updating coordinage varibles.

change_units([variables, desired_unit, ...])

Parameters:
  • variables (None, str or list of str) -- Variable names to attempt to change units.