pyudv.helpers.compute_common_part#

compute_common_part(vec1, vec2)[source]#

Compute the common part between two vector, and return it. If it is not exactly colocated, it returns a interpolation with the same number of points betwen the bounds common to the two arrays.

Parameters:
  • vec1 (np.ndarray) – first 1D array.

  • vec2 (np.ndarray) – second 1D array.

Return type:

tuple[ndarray, float, float]

Returns:

  • z_interp (np.ndarray) – interpolated vector

  • z_min (float) – lower bound

  • z_max (float) – higher bound