resqpy.weights_and_measures.convert_flow_rates
- resqpy.weights_and_measures.convert_flow_rates(a, from_units, to_units)
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, orfloat) – array of volume flow rate values to undergo unit conversion in situ, or a scalarfrom_units (
string) – units of the data before conversion, eg. ‘m3/d’; see notes for acceptable unitsto_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’)