nmrglue.process.proc_base.set_imag
- nmrglue.process.proc_base.set_imag(data, v)[source]
Set imaginary portion of data to a constant.
- Parameters
- datandarray
Array of NMR data.
- vfloat
Constant to set both imaginary component of data to.
- Returns
- ndatandarray
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.