bkg_file
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| bkg_file [2019/06/21 17:02] – created pac079 | bkg_file [2025/09/19 15:18] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== bkg_file ====== | ||
| + | Macro which takes a filename and uses it as a background function. A scale factor for the background can be refined. This is particularly useful where there is a strong, feature-containing background which is hard to fit with the Chebyshev polynomial. Including a measured background can also be important for quantitative phase analysis. | ||
| + | <code topas> | ||
| + | macro bkg_file(filename, | ||
| + | { | ||
| + | #m_argu c If_Prm_Eqn_Rpt(c, | ||
| + | user_y #m_unique bkg_obj filename | ||
| + | fit_obj = CeV(c, v) bkg_obj; | ||
| + | } | ||
| + | macro bkg_file(filename) | ||
| + | { | ||
| + | bkg_file(filename, | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | **Example usage** | ||
| + | <code topas> | ||
| + | bkg_file(" | ||
| + | bkg_file(" | ||
| + | </ | ||