Warning: Trying to access array offset on value of type null in /home/site/wwwroot/lib/plugins/move/action/rename.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at /home/site/wwwroot/lib/plugins/move/action/rename.php:42) in /home/site/wwwroot/inc/common.php on line 1955

Warning: Cannot modify header information - headers already sent by (output started at /home/site/wwwroot/lib/plugins/move/action/rename.php:42) in /home/site/wwwroot/inc/actions.php on line 38
bkg_file [topas wiki]

User Tools

Site Tools


bkg_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
bkg_file [2019/06/21 17:02] – created pac079bkg_file [2024/02/22 19:55] (current) dectors
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,c,v)
 +
 + #m_argu c If_Prm_Eqn_Rpt(c, v, min 0 max 10000)
 + user_y #m_unique bkg_obj filename
 + fit_obj = CeV(c, v) bkg_obj;
 +}
 +macro bkg_file(filename)
 +
 + bkg_file(filename, ,1)
 +}
 +</code>
 +
 +**Example usage**
 +<code topas>
 +bkg_file("myBackground.xy",@,0.5) 'Background with a refined scale factor
 +bkg_file("myFixedBackground.xy" 'Background with a fixed scale factor of 1
 +</code>