py_eddy_tracker.eddy_feature.detect_local_minima_

py_eddy_tracker.eddy_feature.detect_local_minima_(grid, general_mask, pixel_mask, maximum_local_extremum, sign)[source]

Take an array and detect the troughs using the local maximum filter. Returns a boolean mask of the troughs (i.e., 1 when the pixel’s value is the neighborhood maximum, 0 otherwise) http://stackoverflow.com/questions/3684484/peak-detection-in-a-2d-array/3689710#3689710