nmrglue.process.proc_base.set_imag

nmrglue.process.proc_base.set_imag(data, v)[source]

Set imaginary portion of data to a constant.

Parameters :

data : ndarray

Array of NMR data.

v : float

Constant to set both imaginary component of data to.

Returns :

ndata : ndarray

Array of NMR data with imaginary components set to v.

Notes

data is set in place, if original data is required make a copy before calling this function.

Previous topic

nmrglue.process.proc_base.set_real

Next topic

nmrglue.process.proc_base.ri2c

This Page