Differences
This shows you the differences between two versions of the page.
| documentation:language_reference:objects:spectra:functions:broaden [2016/09/27 16:36] – created Maurits W. Haverkort | documentation:language_reference:objects:spectra:functions:broaden [2025/11/20 04:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Broaden ====== | ||
| + | ### | ||
| + | Broadens a spectrum by a Gaussian and Lorenzian. Energy dependent broadening is allowed. The method // | ||
| + | ### | ||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | ### | ||
| + | description text | ||
| + | ### | ||
| + | |||
| + | ==== Input ==== | ||
| + | <code Quanty Example.Quanty> | ||
| + | dofile(" | ||
| + | |||
| + | -- Broaden with a Gaussian of FWHM 0.2 and a Lorenzian with variable | ||
| + | -- width, the interval 0 to 5.25 has FWHM=0.2. The interval 5.75,20 has | ||
| + | -- FWHM=0.75. The interval 5.25 to 5.75 linearly increases from 0.2 to 0.75 | ||
| + | |||
| + | GBroaden = Spectra.Broaden(G, | ||
| + | G.Print({{" | ||
| + | GBroaden.Print({{" | ||
| + | gnuplotScript = gnuplotHead .. [[ | ||
| + | set output " | ||
| + | plot " | ||
| + | " | ||
| + | ]] | ||
| + | file = io.open(" | ||
| + | file: | ||
| + | file: | ||
| + | os.execute(" | ||
| + | os.execute(" | ||
| + | </ | ||
| + | |||
| + | ==== Result ==== | ||
| + | ### | ||
| + | The resulting picture is: | ||
| + | ### | ||
| + | {{: | ||
| + | |||
| + | ===== Available functions ===== | ||
| + | {{indexmenu> | ||