In the previous section, we described how to perform grain indexing with GrainSpotter or grain indexing with ImageD11. After some time, you might realize that you are not satisfied with the results and need more advanced tuning of the process.
As this point, you probably computed your list of G-vectors with ImageD11. The first line of the G-vectors file contains the unit cell parameters and lattice centering (one of P,A,B,C,I,F) and, below, you can find list of computed theoretical g-vectors for the expected unit cell.
This list is generated with crude calculations that do not know anything about atom types of positions in your structure. Chances are that many of those theoretical g-vectors do not exist for your structure or have a very low intensity.
The tool timelessPeaksFromCIF uses a library from xfab and PolyXSim to generates a list of peaks based on a cif file.
All you need is to provide a CIF file for your crystal structure (update the cell parameters to your experiment), the wavelength, and the minimum and maximum 2θ values.
The code will then list the following information
You also have options to filter peaks based on an intensity threshold (i.e. to ignore peaks with a weak intensity).
Now is the time to update your GVE file. At the time of writing, this has to be done somewhat by hand. This could be improved in the future.
Anyway
# gx gy gz xc yc ds eta omega spot3d_id xl yl zl
. Those are your experimental g-vectors,You are then ready to go.