nmrglue.process.pipe_proc.set
- nmrglue.process.pipe_proc.set(dic, data, r='a', i='a', c='a', x1=1.0, xn='default')[source]
Set data to a constant.
- Parameters
- dicdict
Dictionary of NMRPipe parameters.
- datandarray
Array of NMR data.
- rfloat, or ‘a’
Constant to set real data to. “a” sets real data to 0 unless c is defined.
- ifloat or ‘a’
Constant to set imaginary data to. “a” sets imaginary data to 0 unless c is defined.
- cfloat
Constant to set both real and imaginary data by. ‘a’ sets both channels to 0 unless r or i in defined.
- x1int
First point of region to set to the constant.
- xnint or ‘default’
Last point of region to set to the constant. ‘default’ specifies the last point.
- Returns
- ndicdict
Dictionary of updated NMRPipe parameters.
- ndatandarray
Array of NMR data which has been set to a constant.