nearest_intersection_idx#

metpy.calc.nearest_intersection_idx(a, b)[source]#

Determine the index of the point just before two lines with common x values.

Parameters:
  • a (array-like) – 1-dimensional array of y-values for line 1

  • b (array-like) – 1-dimensional array of y-values for line 2

Returns:

  • An array of indexes representing the index of the values

  • just before the intersection(s) of the two lines.