When you have sample with multiple phases, your list of extracted experimental g-gvectors (the bottom section of your GVE file, see example at the link) includes vectors that could originate from all phases in your sample.
Here is how we proceed:
One of the most critical tasks of this work is to know what you are looking for. In our case, we typically have
To do so, it is much better to work on an 2θ-histogram of the experimental g-vectors.
The figure on the right shows an example from Gay et al, published in Earth and Planetary Science Letters in 2023 [doi: 10.1016/j.epsl.2023.118015]. The sample holds 4 sample phases and a pressure medium (KCl). Top image is an ω-stack for all experimental g-vectors, potted as a function of ds and η. The bottom image is what you get if you try to index an average diffraction image directly. The middle panel is what is extracted from a 2θ-histogram of the experimental g-vectors.
The histogram is less affected by very large grains (the pressure medium in our case). In addition, experimental peak broadening, due to the instrument or the sample properties such as grain size or microstrains, have been removed since we only consider the center of mass of eack peak.
You can then use your favorite powder diffraction software, such as PDIndexer or MAUD to identify sample phases and their unit cell parameters. Just keep in mind that peak intensities in the histograms are not true intensities, but a number of experimental g-vectors.
We will need a custom GVE file for each phase we want to index. In those files (see detailed file format here):
Use a tool like timelessPeaksFromCIF, for each of the phases you wish to consider, and create a custom GVE file with the proper unit cell parameters, lattice centering, and computed theoretical g-vectors.
In our case, we do not index peaks from the pressure medium, but simply ignore the corresponding 2θ in the indexing. This can be easily done by specifying custom 2θ ranges in the GrainSpotter input file.
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
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 example of a multiphase indexing loop here.
This will be written later. We are still waiting for some publications to be accepted.