The netCDF-units package is for the decoding of netCDF unit specifications. The C UDUNITS package from the Unidata Program Center has been the de facto standard for unit specifications in netCDF datasets. This Java package understands and decodes the same syntax used by the UDUNITS package.
Typical use of the netCDF-units package will simply consist of repeted calls to the member function of the parser to decode a unit specification. For example
import visad.Unit;
import visad.data.units.Parser;
while ((String unitSpec = getUnitSpecSomehow()) != null)
{
Unit unit = Parser.parse(unitSpec);
...
}
For information on visad.Unit, see the VisAD package.