Units parser in Java and C
norman at astro.gla.ac.uk
Fri Jul 22 05:34:49 PDT 2011
On 2011 Jul 21, at 17:59, Norman Gray wrote:
> I've developed explicit grammars, and recommended unit lists, for the three unit specifications mentioned in Sébastien's presentation, namely FITS, OGIP and CDS. These are implemented by a C library and a Java class library, which can parse unit strings in an indicated syntax (rejecting malformed ones), and write them out in another syntax or in LaTeX.
I've made some porting fixes. The download URL is now
This should be fairly stable in the short term.
Norman Gray : http://nxg.me.uk
School of Physics and Astronomy, University of Glasgow, UK
More information about the semantics