nmrglue.process.proc_base.set_complex¶
-
nmrglue.process.proc_base.
set_complex
(data, v)[source]¶ Set real and imaginary portions of data to a constant.
- Parameters
- datandarray
Array of NMR data.
- vfloat
Constant to set both real and imaginary component of data to.
- Returns
- ndatandarray
Array with real and imaginary components set to v.
Notes
data is set in place, if original data is required make a copy before calling this function.