resqpy.olio.vector_utilities.unit_corrected_length¶
- resqpy.olio.vector_utilities.unit_corrected_length(v, unit_conversion)[source]¶
Returns the length of the vector v after applying the unit_conversion factors.
- Parameters
v (1D numpy float array) – vector with mixed units of measure
unit_conversion (1D numpy float array) – vector to multiply elements of v by, prior to finding length
- Returns
float, being the length of v after adjustment by unit_conversion
Notes
example unit_conversion might be: [1.0, 1.0, 0.3048] to convert z from feet to metres, or [3.28084, 3.28084, 1.0] to convert x and y from metres to feet