nmrglue.process.pipe_proc.ext

nmrglue.process.pipe_proc.ext(dic, data, x1='default', xn='default', y1='default', yn='default', round=1, left=False, right=False, mid=False, pow2=False, sw=True)[source]

Extract a region.

Parameters :

dic : dict

Dictionary of NMRPipe parameters.

data : ndarray

Array of NMR data.

x1 : int or ‘default’

Starting point of the X-axis extraction. ‘default’ will start the extraction at the first point.

xn : int or ‘default’

Ending point of the X-axis extraction. ‘default’ will stop the extraction at the last point.

y1 : int or ‘default’

Starting point of the Y-axis extraction. ‘default’ will start the extraction at the first point.

yn : int or ‘default’

Ending point of the Y-axis extraction. ‘default’ will stop the extraction at the last point.

round : int

Multiple to round extraction size to.

left : bool

True to extract the left half of the data.

right : bool

True to extract the right half of the data.

mid : bool

True to extract the central half of the data.

pow2 : bool

True will round the extracted size to the nearest power of 2.

sw : bool

True to update the sweep width and ppm calibration parameters, recommended.

Returns :

ndic : dict

Dictionary of updated NMRPipe parameters.

ndata : ndarray

Extracted region of NMR data.

Notes

The time parameter is not implemented. Using multiple conflicting parameters may result in different results than NMRPipe.

Previous topic

nmrglue.process.pipe_proc.dx

Next topic

nmrglue.process.pipe_proc.integ

This Page