resqpy.olio.vector_utilities.points_direction_vector

resqpy.olio.vector_utilities.points_direction_vector(a, axis)[source]

Returns an average direction vector based on first and last non-NaN points or slices in given axis.