Dear professor Coelho and/or Remo,
Thank you on the post.
I am struggling to successfully apply all your instructions (perhaps because I can't access both the TOPAS examples that you have referred to).
I have collected XRD of an empty sample holder which I used for collecting XRDs of the powders of interest. I have named the XRD of the empty holder as background.raw and included the following code lines at the beginning of the JEdit Script:
xdd thexrdpatternofthepowderofinterest.raw
x_calculation_step = Yobs_dx_at(Xo); convolution_step 4
_x1_dx 10.0002 0.0148
user_y bkg background
fit_obj = bkg;
prm s 1 min 0.00001
fit_obj = s bkg;
Question 1.
1a) With the code lines listed above I haven't managed even to run the script successfully.
According to the TOPAS.log, the problem lies under the "_x1_dx 10.0002 0.0148 ", but I can't figure out what exactly the problem is and how to fix it. I suspect that I have also missed to include some other trivial code lines?
1b) The "START" command under "_x1_dx START STEP" I have understood as the starting x value in the XRD pattern, is that correct?
Question 2. On the page 74 in the book [1] I have found a little bit different way to include the experimentally determined background, which seems to work for me, using the following code lines in my case:
xdd thexrdpatternofthepowderofinterest.raw
x_calculation_step = Yobs_dx_at(Xo); convolution_step 4
user_y back_expt background.xy (I have converted the data in .xy format in this case)
prm back_scale 1
fit_obj = back_scale * back_expt;
Plot_Fit_Obj(back_expt)
2 a). Do the code lines under 2 automatically also subtract the experimentally determined background from the XRD pattern of the holder containing the powder of interest or do I need to include any additional code lines?
2 b). Is there any way to, after having completed the steps under 3a, manually correct the background in the regions of XRD pattern of interest (if needed) and if yes what code lines are to be used then?
Question 3.
Would subtracting background in the way as suggested in this post "eliminate" completely contribution of the sample holder to the XRDs of powders of interest even in case when the sample holders contribute to the XRDs in the form of "humps" (please see the XRD pattern labelled as "ZBH-32 empty" in the link [2])? My main goal is to determine as more accurately and precisely as possible the unit cell parameters of powders of interest and I am worried that the humps (that originate from the sample holders) in the XRDs of powders also shift the peak positions of the main phase due to which subtracting experimentally determined background might not address the issue completely?
Do I need to consider using some other sample holder that do not "produces" humps in the XRDs?
Or do I simply need to increase amount of powder to be put on the sample holder prior to collecting its' XRD in order to "cover" the hump(s) to as larger degree as possible (this idea I have gotten based on the content on the page 92 in [1], but it doesn't sound like a wise solution, rather as a potential way to "masking" the problem).
Thank you do much in advance.
Kind regards,
Djurdjija
[1] Dinnebier, Robert E., Andreas Leineweber, and John SO Evans. Rietveld refinement: practical powder diffraction pattern analysis using TOPAS. Walter de Gruyter GmbH & Co KG, 2018.
[2] http://texray-lab.com/2015/04/17/zero-background-sample-holders/