processing:backgroundgeneral
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| processing:backgroundgeneral [2019/09/04 18:39] – ↷ Page name changed from processing:background to processing:backgroundgeneral smerkel | processing:backgroundgeneral [2019/09/05 14:55] (current) – smerkel | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | One necessary step of the data processing is the subtraction | + | Diffraction |
| + | * noise, from the detector, the source, etc | ||
| + | * diffraction from anything within the path of the x-ray beam, which is not your sample, | ||
| + | * diffraction from the larger sample grains, that give rise to well-defined diffraction spots, | ||
| + | * diffraction from the smaller sample grains (i.e. a fine matrix), | ||
| - | ===== Subtract average or median? ===== | + | Most of these should be removed before further processing. Multigrain crystallography relies on the indexing of well-defined diffraction spots. |
| - | Creating an average image can be done with '' | + | ===== Average and median images ===== |
| + | |||
| + | Background evaluation always involve the calculation of average and median images. In the average image, the intensity at each pixel is the average of the intensity at this pixels for all images in the ω scan. In the median image, the intensity at each pixel is the median of the intensity at this pixels for all images in the ω scan. | ||
| + | |||
| + | The average image is a representation of the data that includes | ||
| + | * the background, | ||
| + | * the diffraction from the // | ||
| + | * the diffraction from the //sample grains//, that give rise to well-defined diffraction spots. | ||
| + | |||
| + | The median image is a representation of the data that includes | ||
| + | * the background, | ||
| + | * the diffraction from the // | ||
| + | The diffraction from the //sample grains//, that give rise to well-defined diffraction spots are removed and **//do not contribute// | ||
| + | |||
| + | Creating an average image can be done with [[xray_data: | ||
| + | |||
| + | The median image is less affected by outliers than the average and is probably a better representation of your background. For some purposes you might still need to use the average image. | ||
| + | |||
| + | ===== Testing and subtracting the background ===== | ||
| + | |||
| + | The most efficient way is to test your background with [[software: | ||
| + | * load an example diffraction image, | ||
| + | * select '' | ||
| + | * select '' | ||
| + | |||
| + | You will be able to visualize the effect you the background subtraction and whether your evaluation is satisfactory. | ||
| + | |||
| + | Typically, subtracting the ω-median from a single ω-step diffraction image will be efficient at removing | ||
| + | * noise, from the detector, the source, etc | ||
| + | * diffraction from anything within the path of the x-ray beam, which is not your sample, as long as it is in the form of a powder, | ||
| + | * diffraction from the smaller sample grains (i.e. a fine matrix), that does not show up as well-defined diffraction spots but rather continuous diffraction rings. | ||
| + | |||
| + | It will not work, however, for complex environments such as diamond anvil cells for which the diamond anvils give rise to strong and well defined diamond diffraction spots. | ||
| - | The median image is less affected by outliers than the average. Therefore, if you have strong diamond peaks in some of the images, you will probably still see them also on the average image while there are none in the median one. Because of that, for subtracting the background the median image should be preferred. However, for other purposes you might still need the average image. | ||
| ===== When to subtract the background? ===== | ===== When to subtract the background? ===== | ||
processing/backgroundgeneral.1567615145.txt.gz · Last modified: by smerkel
