python_codes.DEM_analysis.find_first_max#

find_first_max(a, type='first', min_pos=0, max_pos=- 1)[source]#

Find the first maximum of an autocorrelation profile.

Parameters
  • a (array_like, shape (N, )) – Input array.

  • type (str) – If ‘first’, the returned peak is the first peak detected by scipy.signal.find_peaks. If ‘max’, the returned peak is the one with the largest height (the default is ‘first’).

  • min_pos (int) – Minimum index above which the peak is searched (the default is 0).

  • max_pos (int) – Minimum index below which the peak is searched (the default is -1).

Returns

Return the position of the first peak.

Return type

int