The Unity units library

logoThis is the unity library, which is able to parse scientific unit specifications using a variety of syntaxes.

Home page: https://purl.org/nxg/dist/unity

Released versions:

VersionDateCode DOIPackages
latest 10.5281/zenodo.6949817 list
1.0 2014 May 13 10.5281/zenodo.6949818 package
1.1-b1 2022 April 10 package
1.1 2023 October 22 10.5281/zenodo.10031242 package

The library is released under the terms of the 2-clause BSD licence.

The four syntaxes which the library (and VOUnits specification) refers to are:

The library includes a set of `known units', which draws heavily on the QUDT specification and models, in the sense that it incorporates a subset of the QUDT units, with a few astronomy-specific additions. Specifically it draws on QUDT v1.1, which was the current version at the time v1.0 of this library was released.

Further links:

Documentation (recent snapshot, as of 2023 October 22):

You can cite v1.1 of the library using:

@software{unity-1.1,
  author       = {Norman Gray},
  title        = {Unity: multi-syntax unit parsing},
  month        = oct,
  year         = 2023,
  version      = {1.1},
  doi          = {10.5281/zenodo.10031242},
  url          = {https://purl.org/nxg/dist/unity}
}

Cite the ‘latest version’ with DOI 10.5281/zenodo.6949817

Norman Gray
2023 October 22