shoot.contours.get_lnam_peaks

Contents

shoot.contours.get_lnam_peaks#

shoot.contours.get_lnam_peaks(lnam, K=0.7)[source]#

Find local extrema of LNAM field within closed contours

Parameters:
  • lnam (xarray.DataArray) – 2D LNAM (Local Normalized Angular Momentum) field.

  • K (float, default 0.7) – Contour level threshold for detecting closed regions.

Returns:

  • minima (ndarray) – Array of (i, j) indices for LNAM minima (anticyclones).

  • maxima (ndarray) – Array of (i, j) indices for LNAM maxima (cyclones).

  • Lines_coords (list) – List of contour line coordinates [lon, lat] for each closed contour.