processing:complex-multi-phase
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| processing:complex-multi-phase [2019/08/01 14:34] – matthias | processing:complex-multi-phase [2023/12/10 12:11] (current) – smerkel | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | |||
| ====== | ====== | ||
| - | If your dataset is complex, here is a list of tricks | + | When you have sample with multiple phases, |
| + | |||
| + | Here is how we proceed: | ||
| + | * First work on our list of g-vectors | ||
| + | * Generate custom GVE files for each phase we will work on, | ||
| + | * Run series of indexings, one phase after another, and multiple times. | ||
| + | |||
| + | ===== Identify phases and peaks ===== | ||
| - | ===== Trick 1: Plot intensity vs. 2theta from peak histogram in ImageD11 ===== | ||
| - | from ImageD11 import columnfile | + | {{ :processing:indexing:gay2023_bridgmanite_2dplot.png? |
| - | c = columnfile.columnfile(' | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | import pylab | + | |
| - | pylab.figure() | + | |
| - | pylab.show() | + | |
| - | import matplotlib | + | |
| - | matplotlib.use(" | + | |
| - | from pylab import * | + | |
| - | | + | |
| - | from ImageD11.columnfile import * | + | |
| - | c = columnfile(" | + | |
| - | c.parameters.loadparameters(" | + | |
| - | c.updateGeometry() | + | |
| - | tth=arange(0, | + | |
| - | | + | |
| - | show() | + | |
| - | plot(tth[1:], | + | |
| - | show() | + | |
| - | | + | |
| - | Open a python console | + | One of the most critical tasks of this work is to know what you are looking for. In our case, we typically have |
| - | python | + | * 2 or more sample phases, often with complex structures and many peaks, |
| + | * a pressure medium, often a simple cubic phase, with one peak. | ||
| - | | + | To do so, it is much better to work on an [[processing:phase_identification| 2θ-histogram of the experimental g-vectors]]. |
| - | | + | |
| - | from pylab import * | + | |
| - | from ImageD11.columnfile import * | + | |
| - | c = columnfile(' | + | |
| - | | + | |
| - | | + | |
| - | tth = arange(0,15,.01) | + | |
| - | | + | |
| - | | + | |
| - | ===== Trick 2: Work with large grain first ===== | + | The figure on the right shows an example from Gay //et al//, published in //Earth and Planetary Science Letters// in 2023 [doi: [[https:// |
| - | Example: You have a phase assemblage consisting of a pressure medium | + | The histogram is less affected by very large grains (the pressure medium |
| - | The idea behind the following procedure is this: Remove all peaks that belong | + | You can then use your favorite powder diffraction software, such as [[https:// |
| - | Let's start. First, you have to [[processing: | + | ===== Custom GVE files for each phase ===== |
| - | Now comes the trickiest part: You have to do a good (!) Rietveld refinement. This is not easy since we already mentioned | + | We will need a custom GVE file for each phase we want to index. In those files (see [[fileformat: |
| + | * the first line needs to be altered with the unit cell parameters | ||
| + | * the section on computed theoretical g-vectors | ||
| + | * The actual scattering vectors (g-vectors) extracted from the experimental data below is identical for all phases, since we do not know how they are assigned. | ||
| - | Now, calculate the G-vectors with ImageD11 | + | Use a tool like [[processing: |
| - | Before dealing with GrainSpotter let's get rid of some peaks. Since KCl is the most abundant phase (e.g. the one with the most intense peaks), we remove the KCl peaks first. Run ringselect and ringselect_reverse to separate the KCl peaks from the other peaks. Check the peaks carefully | + | In our case, we do not index peaks from the pressure medium, but simply ignore |
| - | Now, take the " | + | ===== Indexing loop ===== |
| - | You can also load the "KCl-only" peaks, calculate their G-vectors | + | Let's say your sample consist of 3 phases, phaseA, phaseB, phaseC, with the 3 corresponding experimental GVE files, phaseA.gve, phaseB.gve, phaseC.gve. The indexing process will go as follows |
| + | * index grains for phaseA, with a strict set of tolerances, | ||
| + | * remove the assigned experimental g-vectors from all 3 phaseA.gve, phaseB.gve, and phaseC.gve, | ||
| + | * index grains for phaseB, with a strict set of tolerances, | ||
| + | * remove the assigned experimental g-vectors | ||
| + | * index grains | ||
| + | * remove the assigned experimental g-vectors from all 3 phaseA.gve, phaseB.gve, | ||
| + | * and repeat the process as many times as necessary, with the same tolerances, and then increasing tolerances to catch most sample grains, merging all the indexed grains into one master file. | ||
| - | Run ringselect and ringselect_reverse again to separate the " | + | You can either run this by hand, your use a fancy loop with a bash script. We actually spent some time working on such a loop, and you can find an [[examples: |
| - | At the end, you should have a bunch of sets of parameter files (.prm) and G-vector files (.gve): | + | ===== Preparing figures ===== |
| - | * two sets for KCl (one from " | + | |
| - | * three sets for Maj (one from " | + | |
| - | * three sets for St ((one from " | + | |
| - | Now, create | + | This will be written later. We are still waiting |
| - | After GrainSpotter did its job you can now run timelessGrainComparison to see which of those results is meaningful and if the whole procedure was worth it. | ||
processing/complex-multi-phase.1564662859.txt.gz · Last modified: by matthias
