Reduces streak artefacts in 2D and 3D NMR spectra.
This function looks at the edges of the spectrum and subtracts anything that it finds there from the entire spectrum. The assumption is that anything that's reached as far as the edge must be a streak artefact that should be removed. This is often the case in 2D and 3D NMR spectra.
spectrum - a 2D or a 3D NMR spectrum as a numerical array. Cell arrays and structures made up of numerical arrays are processed recursively.
spectrum - a de-streaked array of the same dimension and structure
Most 2D and 3D NMR examples in Spinach (see /examples/nmr_liquids) use this function. An example of its effect is given below.
Edges of the spectrum must be free of genuine signals for this function to perform as intended.
Revision 3284, authors: Ilya Kuprov