length_factor

geodetic_engine.welltrajectory.length_factor(unit)[source]

Metres per unit, as geodetic_engine.units.length_unit() reads it.

Parameters:

unit (str) – A symbol or name ("m", "ft", "ftUS"), an OSDU unit id such as "dev:reference-data--UnitOfMeasure:ft:", or an OSDU unit persistableReference.

Raises:

UnitError – If the unit is not recognised, or is not a length.

Return type:

float

Example

>>> length_factor("ft")
0.3048