act.utils.ChangeUnits.change_units

ChangeUnits.change_units(variables=None, desired_unit=None, skip_variables=None, skip_standard=True)[source]
Parameters:
  • variables (None, str or list of str) – Variable names to attempt to change units.

  • desired_unit (str) – Desired udunits unit string.

  • skip_variables (None, str or list of str) – Variable names to skip. Works well when not providing a variables keyword.

  • skip_standard (boolean) – Flag indicating the QC variables that will not need changing are skipped. Makes the processing faster when processing all variables in dataset.

Returns:

dataset (xarray.dataset) – A new dataset if the coordinate variables are updated. Required to use returned dataset if coordinage variabels are updated, otherwise the dataset is updated in place.