contspacing.m

From Spinach Documentation Wiki
Jump to: navigation, search

Non-linear adaptive contour spacing. Useful for NMR data where small cross-peaks must be adequately contoured next to large diagonal peaks.

Syntax

     [all_conts,pos_conts,neg_conts]=contspacing(smax,smin,delta,k,signs,ncont)

Parameters

    smax      - global maximum intensity in the spectrum

    smin      - global minimum intensity in the spectrum

    delta     - minimum and maximum elevation (as a fraction of the
                total intensity) of the contours above the baseline.
                A good starting value is [0.02 0.2 0.02 0.2]. The
                first pair of numbers refers to the positive conto-
                urs and the second pair to the negative ones.

    k    - a coefficient that controls the curvature of the contour
           spacing function: k=1 corresponds to linear spacing and
           k>1 bends the spacing curve to increase the sampling den-
           sity near the baseline. A reasonable value is 2.

    signs   - can be set to 'positive', 'negative' or 'both' - this
              will cause the corresponding contours to be returned.

    ncont   - the number of contours, a reasonable value is 20

Outputs

    all_conts - all contour levels, a row vector

    pos_conts - positive contour levels, a row vector

    neg_conts - negative contour levels, a row vector

Notes

The following functions are used to get contour levels

 pos_conts=delta(2)*smax*linspace(0,1,ncont).^k+smax*delta(1);
 neg_conts=delta(2)*smin*linspace(0,1,ncont).^k+smin*delta(1);

See also

apodisation.m, axis_1d.m, crop_2d.m, ft_axis.m, heterodyne.m, int_2d.m, molplot.m, mri_2d_plot.m, plot_1d.m, plot_2d.m, plot_3d.m, plot_uf.m, slice_2d.m, stack_2d.m, sweep2ticks.m, volplot.m, xyz2pd.m, zoom_3d.m, Kernel_utilities

Version 2.9, authors: Ilya Kuprov