Ouranosinc / xscen

A climate change scenario-building analysis framework.
https://xscen.readthedocs.io/
Apache License 2.0
15 stars 2 forks source link

Make xscen.utils.change_units() update unit name on equal units #373

Closed vindelico closed 5 months ago

vindelico commented 6 months ago

Make xscen.utils.change_units() update unit name on equal units

Pull Request Checklist:

What kind of change does this PR introduce?

During unit conversion xscen.utils.change_units will adopt the name from the variables_and_units dictionary if the physical units are equal but their names are not (ex. degC <-> ˚C)

Useful for harmonizing unit names when processing datasets of varying origin.

Does this PR introduce a breaking change?

No.

Other information:

There is no testing for xscen.utils (yet). Right?