pint-cf: A Lark-based parser and units registry for CF-compliance with pint #4028
pgamez
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I’ve recently published
pint-cf, a lightweight package designed to bring CF-compliant unit support to pint. While excellent tools like yours and cf-xarray already handle many use cases, they often rely on regex-based preprocessors or partial custom definitions to bridge the gap between UDUNITS-2 and Pint.This package tries to provide a more formal approach:
pint.UnitRegistrythat loads UDUNITS2 definitions and handles pluralization by disabling pint's standard suffixesCode is available at https://github.com/pgamez/pint-cf
I would be very grateful if you could take a look and share any feedback.
I hope you find it interesting!
Thanks,
Pedro
Beta Was this translation helpful? Give feedback.
All reactions