Unity is a free and open-source pair of Java and a C libraries with closely matching functionality that use a number of syntaxes to parse scientific unit specifications.
Unity includes 4 syntaxes:
· the FITS specification, section 4.3
· OGIP memo OGIP/93-001
· CDS's Standards for Astronomical Catalogues, Version 2.0
· The VOUnits syntax
Further details as well as building instructions can be found HERE (more software developed by Norman Gray can be found HERE).
Unity is a cross-platform utility capable of running on any UNIX based operating system (e.g. Mac OS X, Linux, BSD).
- The '%' character is now treated as a special case, rather than being a permitted 'STRING' character; it's only the CDS syntax that permits this character.
- Some readability adjustments to the grammars, clarifying function application and raising terms in a unit string to powers.
- Unit strings with leading slashes (eg '/m3') are no longer supported in the VOUnits syntax.
- Additional test cases, involving '%' and the leading scale factor.