UnitRegistry

petrophys.model.UnitRegistry

class UnitRegistry[source]

Registry of unit definitions and conversion factors.

This class maintains conversion factors between units for various measurement types.

Attributes

DEPTH_TO_M = {'feet': 0.3048, 'ft': 0.3048, 'm': 1.0, 'meters': 1.0}
DENSITY_TO_G_CM3 = {'g/cc': 1.0, 'g/cm3': 1.0, 'kg/m3': 0.001, 'lb/ft3': 0.016018463}
POROSITY_TO_FRACTION = {'%': 0.01, 'decimal': 1.0, 'fraction': 1.0, 'percent': 0.01, 'pu': 0.01, 'v/v': 1.0}
SLOWNESS_TO_US_FT = {'us/ft': 1.0, 'us/m': 0.3048, 'μs/ft': 1.0, 'μs/m': 0.3048}
RESISTIVITY_TO_OHM_M = {'ohm-ft': 0.3048, 'ohm-m': 1.0, 'ohm.ft': 0.3048, 'ohm.m': 1.0, 'ohmft': 0.3048, 'ohmm': 1.0}