nmrglue.process.pipe_proc.cbf

nmrglue.process.pipe_proc.cbf(dic, data, last=10, reg=False, slice=slice(None, None, None))[source]

Constant baseline correction.

Parameters
dicdict

Dictionary of NMRPipe parameters.

datandarray

Array of NMR data.

lastfloat

Percentage of trace to use in calculating baseline correction.

regslice object, optional

Python slice object describing region(s) from which to calculate the baseline correction. If False (default) the last parameter will be used to calculate the correction.

sliceslice object

Python slice describing regions to apply the baseline correction to.

Returns
ndicdict

Dictionary of updated NMRPipe parameters.

ndatandarray

Array of NMR data with a constant baseline correction applied.

Notes

The parameters of this function differ significantly from NMRPipe’s cbf function. The parameters ref and slice are Python slice objects if explicit correction regions are desired. The noseq and nodmx parameters are not implemented.