xarray-contrib / pint-xarray

Interface for using pint with xarray, providing convenience accessors
https://pint-xarray.readthedocs.io/en/latest/
Apache License 2.0
105 stars 12 forks source link

comparing positive and negative angles in `degrees_east` #119

Open dcherian opened 3 years ago

dcherian commented 3 years ago
from cf_xarray.units import units

220 * units.degrees_east == (-140 * units.degrees_east)

is False. Can this be True instead?

jthielen commented 3 years ago

This would be a good thing to ask upstream in Pint! I'm not aware of any modular arithmetic support, but I definitely see something like this being useful.