nmrglue.analysis.segmentation.find_all_upward

nmrglue.analysis.segmentation.find_all_upward(data, thres, find_segs=False, diag=False)[source]

Find all upward connected segments in data

Parameters
datandarray

Data to perform segmentation on.

thresfloat

Threshold, below this nodes are considered noise.

find_segsbool, optional

True to return a list of slices for the segments.

diagbool, optional

True to include diagonal neighbors in connection.

Returns
locationslist

List of indicies of local maximum in each segment.

seg_sliceslist, optional

List of slices which extract a given segment from the data. Only returned when fig_segs is True.