Unit¶
- class geodetic_engine.units.Unit[source]¶
Bases:
objectA length or angle unit, as
si = scale * value.- symbol¶
Its symbol, as given or as its payload states it.
- quantity¶
"length"or"angle".
- scale¶
SI units per unit: metres, or radians.
- payload¶
The persistableReference it was read from, to be written back unchanged, or None. Not compared.
- Raises:
UnitError – If
quantityis neither, orscaleis not a finite positive number.
- reference()[source]¶
The unit as an OSDU unit persistableReference.
The payload it was read from, if any. Otherwise a
USOpayload in the form the OSDU CRS conversion service writes: for metres, exactly the service’s own.- Return type:
- __init__(symbol, quantity, scale, payload=None)¶