NCL Home> Application examples> Data Analysis || Data files for some examples

Example pages containing: tidbits | resources | functions/procedures

Local Minima and Maxima

local_min calculates the local minima. It returns the x and y indices of the minima location, and the minima values.

local_max calculates the local maxima.

minmax_1.ncl: Calculates the local minima of some real world psi data and plots the original data overlaid with white dots that represent the location of each minima.
minmax_2.ncl: Same as example 1, except it calculates the maxima.