Differences
This shows you the differences between two versions of the page.
documentation:language_reference:objects:spectra:functions:element [2016/09/25 23:34] – created Maurits W. Haverkort | documentation:language_reference:objects:spectra:functions:element [2016/10/10 09:41] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== 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: | ||
+ | ### | ||
+ | |||
+ | ==== Input ==== | ||
+ | <code Quanty Example.Quanty> | ||
+ | dofile(" | ||
+ | |||
+ | G1 = Spectra.Element(G, | ||
+ | G2 = Spectra.Element(G, | ||
+ | |||
+ | print(" | ||
+ | |||
+ | print(" | ||
+ | print(" | ||
+ | </ | ||
+ | |||
+ | ==== Result ==== | ||
+ | <file Quanty_Output> | ||
+ | The orginal output contains 3 spectra | ||
+ | G1 contains 1 spectra | ||
+ | G2 contains 2 spectra | ||
+ | </ | ||
+ | |||
+ | ===== Available functions ===== | ||
+ | {{indexmenu> |