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/actions.php on line 38
bkg_file [topas wiki]

User Tools

Site Tools


bkg_file

This is an old revision of the document!


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.

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)
}

Example usage

bkg_file("myBackground.xy",@,0.5) 'Background with a refined scale factor
bkg_file("myFixedBackground.xy")  'Background with a fixed scale factor of 1
bkg_file.1667488126.txt.gz · Last modified: 2022/11/03 15:08 by 127.0.0.1