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
- dicdict
Dictionary of NMRPipe parameters.
- datandarray
Array of NMR data.
- x1int or ‘default’
Starting point of the X-axis extraction. ‘default’ will start the extraction at the first point.
- xnint or ‘default’
Ending point of the X-axis extraction. ‘default’ will stop the extraction at the last point.
- y1int or ‘default’
Starting point of the Y-axis extraction. ‘default’ will start the extraction at the first point.
- ynint or ‘default’
Ending point of the Y-axis extraction. ‘default’ will stop the extraction at the last point.
- roundint
Multiple to round extraction size to.
- leftbool
True to extract the left half of the data.
- rightbool
True to extract the right half of the data.
- midbool
True to extract the central half of the data.
- pow2bool
True will round the extracted size to the nearest power of 2.
- swbool
True to update the sweep width and ppm calibration parameters, recommended.
- Returns
- ndicdict
Dictionary of updated NMRPipe parameters.
- ndatandarray
Extracted region of NMR data.
Notes
The time parameter is not implemented. Using multiple conflicting parameters may result in different results than NMRPipe.