You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add fluorescence fitting function to the RSoXS.py module, see example of the code below. This function will estimate the fluorescence background around the carbon edge, with the assumption that the power law scaling is identical at all energies.
def XRFBackground(sample, q_lower1, q_upper1, q_lower2, q_upper2,pre, post, printE):
def exp_func(q, para):
A, B, C = para
return A * q**B + C
the assumption that the power law scaling is identical at all energies.
If there is resonant scattering this is not a good assumption. For a simple example, assume there is a three material system with two materials resonant and relatively well mixed, but the third phase (e.g. gold) has sharp boundaries and non resonant. The power law scaling far from the edge would be expected to be q^-4, while when you are getting resonant scattering between the phases nearer the edge, it would lessen. This assumption would fit that change as fluorescence.
Add fluorescence fitting function to the RSoXS.py module, see example of the code below. This function will estimate the fluorescence background around the carbon edge, with the assumption that the power law scaling is identical at all energies.
def XRFBackground(sample, q_lower1, q_upper1, q_lower2, q_upper2,pre, post, printE):
def exp_func(q, para):
A, B, C = para
return A * q**B + C
The text was updated successfully, but these errors were encountered: