nmrglue.process.pipe_proc.tri

nmrglue.process.pipe_proc.tri(dic, data, loc='auto', lHi=0.0, rHi=0.0, c=1.0, start=1, size='default', inv=False, one=False, hdr=False)[source]

Triangular apodization

Parameters :

dic : dict

Dictionary of NMRPipe parameters.

data : ndarray

Array of NMR data.

loc : int or “auto”

Location in points of triangle apex. The default (“auto”) is to place the apex in the middle.

lHi : float

Starting height of the left side of the triangle.

rHi : float

Starting height of the right side of the triangle.

c : float

First point scale value.

start : int, optional

Starting location of apodization window. Default is the first point, 1.

size : int, optional

Size of the apodization window. Default (‘default’) is the full size of the active dimension.

inv : bool, optional

True for inverse apodization, False for normal apodization.

one : bool, optional

True to set points outside of window to 1. False leaves points outside the apodization window as is.

hdr : bool, optional

True to read apodization parameters from the the parameters in dic.

Returns :

ndic : dict

Dictionary of updated NMRPipe parameters.

ndata : ndarray

Array of NMR data with a triangular apodization applied.

Notes

The right side of the apodization is differs slightly from NMRPipe’s tri function.

Previous topic

nmrglue.process.pipe_proc.tm

Next topic

nmrglue.process.pipe_proc.rs

This Page