====== Element ====== ### Takes an element, or a list of elements form the spectrum object and returns a new spectrum object only containing these. ### ===== Example ===== ### The spectra object created in the [[documentation:language_reference:objects:spectra:start|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//. ### ==== Input ==== 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") ==== Result ==== The orginal output contains 3 spectra G1 contains 1 spectra G2 contains 2 spectra ===== Available functions ===== {{indexmenu>.#1}}