Unidata/UDUNITS-2

API and utility for arithmetic manipulation of units of physical quantities

70

stars

383

commits

C

primary language

Aug 31, 2026

updated

www.unidata.ucar.edu/software/udunits

README

This package provides support for units of physical quantities. Its main
components are:
    1) A C library, "libudunits2", for:
        a) Obtaining a binary unit from a string unit;
        b) Manipulating binary units arithmetically; and
        c) Obtaining a converter of numeric values between compatible binary
           units;
    2) A utility, "udunits2", for
        a) Obtaining the definition of a unit; and
        b) Converting a numeric value between compatible units; and
    3) An extensive database of units.

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

Contributors

semmerson

253 commits

larsbarring

70 commits

WardF

21 commits

lesserwhirls

13 commits

Unidata/UDUNITS-2

API and utility for arithmetic manipulation of units of physical quantities

70

stars

383

commits

C

primary language

Aug 31, 2026

updated

www.unidata.ucar.edu/software/udunits

README

This package provides support for units of physical quantities. Its main
components are:
    1) A C library, "libudunits2", for:
        a) Obtaining a binary unit from a string unit;
        b) Manipulating binary units arithmetically; and
        c) Obtaining a converter of numeric values between compatible binary
           units;
    2) A utility, "udunits2", for
        a) Obtaining the definition of a unit; and
        b) Converting a numeric value between compatible units; and
    3) An extensive database of units.

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

Contributors

semmerson

253 commits

larsbarring

70 commits

WardF

21 commits

lesserwhirls

13 commits

Languages

C

87.0%

Lex

4.1%

CMake

2.9%

Yacc

2.8%

Makefile

1.8%