The ome.xsd schema file defines new type enumerations: UnitsLength, UnitsTime, UnitsPressure, UnitsAngle, UnitsTemperature, UnitsElectricPotential, UnitsPower and UnitsFrequency. These types are used throughout the model. Each new unit attribute is in a pair with an existing attribute, e.g. PinholeSize and PinholeSizeUnit. The xsd-fu code generator then processes these attribute pairs into a single unit aware attribute in the output java classes. The java classes make use of the types from the new ome.units.* classes.
The classes in ome.units are inspired by but not a direct implementation of the specification for a Units of Measurement API.
These classes have been constructed to allow for future wrapping of the Units of Measurement API implementation developed at https://www.eclipse.org/uomo/ if future work on that project provides a more complete implementation.
See also
OMERO developer documentation on units for further details of how this aspect of the Data Model is implemented in OMERO.
Default and Alternate OME-XML samples demonstrating the use of instrument units.
A system of measurements is defined for:
Is based on the following unit:
And from this are derived the following units:
All angle units are freely convertible.
Is based on the following unit:
And from this are derived the following units:
All electric potential units are freely convertible.
Is based on the following unit:
And from this are derived the following units:
All frequency units are freely convertible.
Is based on the following units:
And from these are derived the following units:
All units are freely convertible except for pixel and reference frame, both of which are of unspecified length.
Is based on the following unit:
And from this are derived the following units:
All power units are freely convertible.
Is based on the following unit:
And from this are derived the following units:
All pressure units are freely convertible.
Is based on the following unit:
And from this are derived the following units:
The degree sign and word was dropped from kelvin in 1968. https://en.wikipedia.org/wiki/Kelvin
All temperature units are freely convertible.
The string used for each unit is the standard abbreviation for that unit. In a few cases these do not seem obvious but the set of abbreviations has been chosen by the scientific community to avoid abbreviation clashes.
The name and spelling used for each unit in long form is not defined by the scientific community, rather the abbreviation is standardised. For example, the unit of length with the symbol m is equally valid written as meter, metre, metr, or metro.
The following unit abbreviation are defined: