Takes an element, or a list of elements form the spectrum object and returns a new spectrum object only containing these.
The spectra object created in the definitions file contains 3 elements (The spectra created with operator T1, T2, or T3). This example extracts the second spectrum and stores it in variable G1 and extracts the first and third element and stores it in variable G2.
dofile("definitions.Quanty") G1 = Spectra.Element(G,2) G2 = Spectra.Element(G,{1,3}) print("The orginal output contains ",G.N,"spectra") print("G1 contains ",G1.N,"spectra") print("G2 contains ",G2.N,"spectra")
The orginal output contains 3 spectra G1 contains 1 spectra G2 contains 2 spectra