resqpy.weights_and_measures.convert_transmissibilities

resqpy.weights_and_measures.convert_transmissibilities(a, from_units, to_units)

Converts values in numpy array (or a scalar) from one transmissibility unit to another, in situ if array.

Parameters
  • a (numpy float array, or float) – array of transmissibility values to undergo unit conversion in situ, or a scalar

  • from_units (string) – units of the data before conversion, eg. ‘m3.cP/(kPa.d)’; see notes for acceptable units

  • to_units (string) – required units of the data after conversion, eg. ‘bbl.cP/(psi.d)’; see notes for acceptable units

Returns

a after unit conversion

Note

for transmissibility data, resqpy expects a viscosity term in the units of measure (unlike the Energistics standard at the time of RESQML 2.0.1); examples are: ‘m3.cP/(kPa.d)’ or ‘bbl.cP/(psi.d)’; the general form of the units strings must be A.B/(C.D) where A is a valid unit of volume, B is a valid unit of dynamic viscosty, C is a valid unit of pressure, and D is a valid unit of time; use wam.valid_uoms(quantity = ‘dynamic viscosity’) etc. to discover the allowed components of the unit strings