evaluation:extractgrainsizes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| evaluation:extractgrainsizes [2021/04/20 11:47] – matthias | evaluation:extractgrainsizes [2021/06/24 10:00] (current) – [2. Convert to absolute grain sizes] matthias | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Determine Grain Sizes ===== | + | ====== Determine Grain Sizes ====== |
| - | The TIMEleSS tools contain two scripts to determine the size of each grain in the sample. These are '' | + | The TIMEleSS tools contain two scripts to determine the volume |
| - | To use this method, | + | ===== Method ===== |
| + | The idea behind | ||
| - | """" | + | In a second step, the sum of this list of relative grain volumes is put in relation to the illuminated volume of the sample chamber. The result of this second step is a factor, which tells you, how many units of relative grain volume represent |
| + | ===== Usage ===== | ||
| + | To use the scripts, the process of [[processing: | ||
| + | |||
| + | ==== 1. Extract relative grain sizes ==== | ||
| + | Try this: | ||
| + | |||
| + | timelessGrainSizes.py -o myoutputfile.txt -w 0.3738 -HV True mylogfile.log peaks-t100.flt crystal.cif | ||
| + | |||
| + | This command should do the following: | ||
| + | - Display a number of rejected grains in the command window | ||
| + | - Display the relative grain volumes in the command window | ||
| + | - Save the list of grain volumes into the file // | ||
| + | - Plot a simple histogram of the grain volumes | ||
| + | |||
| + | |||
| + | Help message: | ||
| + | < | ||
| Estimation of relative grain volumes based on diffraction intensities | Estimation of relative grain volumes based on diffraction intensities | ||
| Line 38: | Line 56: | ||
| -r REJECT, --reject REJECT | -r REJECT, --reject REJECT | ||
| Reject grains with AverageI > reject*MedianI. Default is 20.0 | Reject grains with AverageI > reject*MedianI. Default is 20.0 | ||
| - | "" | + | </ |
| + | |||
| + | === Rejected grains === | ||
| + | Since the script is based on the analysis of the peak intensities, | ||
| + | |||
| + | === List of relative grain volumes === | ||
| + | The command line will show a list of relative grain volumes. If you set the histogram option '' | ||
| + | |||
| + | === Histogram === | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ==== 2. Convert to absolute grain sizes ==== | ||
| + | Try this: | ||
| + | |||
| + | timelessRelToAbsGrainSize.py myoutputfile.txt -H 1.5 -V 1.8 -r 56 -t 20 -i 76.2 -hist 60 -prop 0.85 | ||
| + | |||
| + | This command will: | ||
| + | - Read the output file of '' | ||
| + | - Convert the relative grain volumes into absolute grain volumes (in µm) | ||
| + | - Save the absolute grain volumes in a new file '' | ||
| + | - Plot a histogram similar to the one shown above | ||
| + | |||
| + | The explanation of the individual parameters is given in the help: | ||
| + | < | ||
| + | # Explanation of the parameters: | ||
| + | grainsizelist: | ||
| + | -H & -V # beamsize_H and beamsize_V: | ||
| + | -r # rotationrange: | ||
| + | -t # samplethickness: | ||
| + | -i # indexquality: | ||
| + | -rad # radius: | ||
| + | -hist # histogram_bins: | ||
| + | -prop # proportion: | ||
| + | </ | ||
| + | |||
| + | === Estimation of the illuminated volume === | ||
| + | The entire conversion is based on the correct estimation of the volume that is illuminated by the X-rays. Normally, this would be a simple cuboid: | ||
| + | V = a * b * c | ||
| + | where a, b and c are the gasket thickness and the dimensions of the X-ray beam. | ||
| + | |||
| + | However, because the sample is rotated, the actual volume is larger: The actual illuminated volume of a rotated sample chamber is: | ||
| + | V_r = v * [d * h * cos(ω/2) + 0.5 * h^2 * tan(ω/2)] | ||
| + | with | ||
| + | * v = beamsize parallel to the rotation axis (usually vertical) | ||
| + | * d = beamsize orthogonal to the rotation axis (usually horizontal) | ||
| + | * h = gasket thickness | ||
| + | |||
| + | For a graphical explanation, | ||
| + | |||
| + | {{: | ||
| + | |||
| + | A quick calculation example shows the difference: | ||
| + | v = 2 µm | ||
| + | d = 2 µm | ||
| + | h = 20 µm | ||
| + | ω = 56° | ||
| + | |||
| + | V = 80 µm^3 | ||
| + | V_r = 283 µm^3 | ||
| + | |||
| + | The example shows that the volume, which is illuminated by the X-rays, can increase drastically when the sample is rotated. Therefore, the accurate estimation of the illuminated volume is crucial for the determination of the precise conversion factor. | ||
| + | |||
| + | === Error estimation === | ||
| + | While the dimensions of the X-ray beam and the rotation angle are usually well known, the thickness of the gasket in a diamond-anvil cell experiment is less constrained. This is due to the fact that the initial indentation thickness is getting thinner as the pressure is increased during the experiment. Usually, the rate, at which this happens, is unknown. Measuring the actual gasket thickness after the experiment can help to model the thickness evolution throughout the experiment. This can, however, still only be an approximation of the true thickness. | ||
| + | |||
evaluation/extractgrainsizes.1618912070.txt.gz · Last modified: by matthias
