-
Notifications
You must be signed in to change notification settings - Fork 3
Background subtraction
X-ray patterns measured through a diamond-anvil cell often have a very intense background. PeakPo provides a background subtraction function to enhance the visibility of weak peaks.
Background subtraction is a powerful tool, but it should be used carefully. For this reason, the default setting for the Bg sub checkbox in the Plot Control box in the Main tab is unchecked.
The parameters used for background subtraction are located in the Bkgn tab. If you hover the mouse pointer over any widget for more than 1 second, tooltips (balloon help) will appear. The numbers in parentheses next to the labels indicate the recommended values:
- N Points = 20
- N Order = 10
- N Iteration = 20
When the Bg sub checkbox is unchecked, the raw base pattern is plotted alongside a dashed line representing the background fit performed by PeakPo. You should carefully inspect whether the background subtraction removes any intensities from diffraction peaks or introduces artifacts in the subtracted pattern. Unusual background fitting behavior is common, particularly at the edges of the selected range (ROI – Region of Interest).
When starting a new dataset, experiment with different background parameter sets. The most critical parameters to optimize for your diffraction pattern are ROI Min and ROI Max. Once you achieve satisfactory results, you can use the same background parameters for the rest of your dataset, as long as the background and 2-theta range remain consistent.
For better results, set the ROI Min and ROI Max values in a region without peaks. This will help avoid any strange artifacts near the edges of the ROI.
If your Min or Max values for the 2-theta range are outside the range of your data, PeakPo will attempt to fit the background across the entire 2-theta range. Be sure that your Min and Max values are within the 2-theta range of your data to avoid this issue.
Home
FAQ
Installation and Update
Data types and functions
Plot and sidebars
Toolbars
Base pattern
Waterfall patterns
Background subtraction
Setup
Control gray scale
Azimuthal integration
JCPDSs
JCPDS, control the view
Make a jcpds from cif
Workflow
Tweak
Save Tweak to JCPDS
Get Tweak result
Peak fitting
Unit-cell fitting
Session
Output files
Publication-ready Cake plot
Illustrator-ready PeakPo plot
Install in anaconda
Update
Run PeakPo in python
Update history
Issues and Suggestions
Environments | FBS setup | APS setups
PeakPo with Jupyter