resqpy.weights_and_measures.convert_pressures
- resqpy.weights_and_measures.convert_pressures(a, from_units, to_units)
Converts values in numpy array (or a scalar) from one pressure unit to another, in situ if array.
- Parameters:
a (
numpy float array, orfloat) – array of pressure values to undergo unit conversion in situ, or a scalarfrom_units (
string) – the units of the data before conversionto_units (
string) – the required units
- Returns:
a after unit conversion
Note
To see supported units, use: valid_uoms(quantity=’pressure’)