Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

cf_units has similar functionality #2

Open
aaschwanden opened this issue May 21, 2016 · 1 comment
Open

cf_units has similar functionality #2

aaschwanden opened this issue May 21, 2016 · 1 comment

Comments

@aaschwanden
Copy link

The cf_units module (https://github.com/SciTools/cf_units) provides a similar functionality, e.g.

            from udunits2 import Converter, System, Unit
            sys = System()
            c = Converter((Unit(sys, inunit), Unit(sys, outunit)))
            outdata = c(data)

is equivalent to

            from cf_units import Unit
            in_unit  = Unit(inunit)
            out_unit  = Unit(outunit)
            outdata = in_unit.convert(data, out_unit)

@ckhroulev : you may consider dropping support for py_udunits2?

@ckhroulev
Copy link
Owner

Agreed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants