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

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 2022 August 2):

You can cite v1.0 of the library using:

@software{unity-1.0,
  author       = {Gray, Norman},
  title        = {Unity: multi-syntax unit parsing},
  month        = may,
  year         = 2014,
  version      = {1.0},
  doi          = {10.5281/zenodo.6949818},
  url          = {https://doi.org/10.5281/zenodo.6949818}
}

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

Norman Gray
2022 August 2