resqpy.weights_and_measures.convert_flow_rates

resqpy.weights_and_measures.convert_flow_rates(a, from_units, to_units)[source]

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

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

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

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

Returns

a after unit conversion

Note

To see supported units, use: valid_uoms(quantity=’volume per time’)