find_peaks#
- metpy.calc.find_peaks(arr, *, maxima=True, iqr_ratio=2)[source]#
Search array for significant peaks (or valleys).
- Parameters:
arr (array-like) – 2-dimensional array of numeric values to search
maxima (bool, optional) – Whether to find local maxima, defaults to True. If False, local minima will be found instead.
iqr_ratio (float, optional) – Ratio of interquantile range (Q1 - Q3) of peak persistence values to use as a threshold (when added to Q3) for significance of peaks. Defaults to 2.
- Returns:
row indices, column indices – Locations of significant peaks
See also
Examples using metpy.calc.find_peaks
#
High/Low Analysis