processing:workflow_training
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| processing:workflow_training [2019/02/19 11:58] – smerkel | processing:workflow_training [2019/09/04 18:47] (current) – ↷ Links adapted because of a move operation smerkel | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| - have a look at the generated diffraction images with [[software: | - have a look at the generated diffraction images with [[software: | ||
| - [[processing: | - [[processing: | ||
| - | - adjust your experimental parameters and evaluate g-vectors in [[software: | + | - adjust your experimental parameters and [[processing: |
| - index your list of extracted g-vectors, using [[software: | - index your list of extracted g-vectors, using [[software: | ||
| - [[processing: | - [[processing: | ||
| Line 17: | Line 17: | ||
| ===== Details ===== | ===== Details ===== | ||
| - | <WRAP center round tip 60%> | + | <WRAP center round tip 80%> |
| - | After following this section, you should understand the parameters involved with multigrain diffraction data processing. You should train with virtual data, assigning rotation ranges, steps, experimental geometry, and crystal structures similar to those of your experiments. At the end, you should be able to re-index 80 to 90% of the starting grains, with very little erroneous indexings. | + | After following this section, you should understand the parameters involved with multigrain diffraction data processing. You should train with virtual data, assigning rotation ranges, steps, experimental geometry, and crystal structures similar to those of your experiments. At the end, you should be able to re-index 80 to 90% of the starting grains, with very little erroneous indexings. |
| </ | </ | ||
| - | == Producing data by simulation == | + | ==== Producing data by simulation |
| - | The purpose of this step is to simulate the outcome of a DAC experiment | + | This step will [[processing: |
| - | The simulation will not only provide 2D diffraction images but also G-vectors, inverse UB matrices (UBi) and some more files. You will get at least 7 different files from the simulation plus the diffraction images. The amount of diffraction images depends on the ω range and the step size you put into the input file. For example, | + | The simulation will not only provide |
| - | Create an input file with the ending //.inp//. For a start, simply modify an existing one like [[fileformat: | + | Typically, at the end of the simulation, we work with |
| - | | + | * the generated diffraction images, which we will try to process, |
| + | | ||
| - | The 7 different files (which were just mentioned above) are usually created quite fast. The time consuming process is the creation of images. This time highly depends on the parameters you put in the input file, e.g. the amount of grains, the peak shape and if you switched on strain tensors or noise. If you just want to test if the software is working it is wise to use an input file with very simple parameters (only 1 grain, no strain tensors, no noise, small ω range etc.). | + | ==== Evaluating |
| - | While the simulation is running you can already | + | You should |
| - | | + | * locate diffraction peaks, |
| + | * evaluate their intensity | ||
| + | | ||
| - | This is convenient because | + | [[software: |
| + | |||
| + | You will be able to evaluate potential issues with peak overlap. How much rotation in ω can you do before you find an other peak? What is the η-range in which you can safely assign this peak and not its neighbor? | ||
| ==== Working on background ==== | ==== Working on background ==== | ||
| - | To get rid of the background we now add up all the diffraction images and calculate an average and a median image. Then, every image is subtracted by this average/ | ||
| - | For calculating | + | To get rid of the background we now add up all the diffraction images and calculate an average and a median |
| - | median.py -h | + | |
| - | The help will pop up and tell you how to use it. | + | |
| - | The calculation will create an additional | + | The average image is a representation of the data that includes |
| + | * the background, | ||
| + | * the diffraction from the //surrounding matrix// or the //powder portion of the sample// that gives you continuous diffraction rings in the image, | ||
| + | * the diffraction from the //sample grains//, that give rise to well-defined diffraction spots. | ||
| - | Next, the actual images have to be subtracted by one of these three images. Usually | + | 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// | ||
| - | Look at the images in Fabian, | + | In [[software: |
| ==== Peak extraction ==== | ==== Peak extraction ==== | ||
| - | From these processed images | + | At this point, |
| - | When you defined one (or more) threshold(s) you can start the [[software: | + | Typically, at this step, you will provide |
| - | peaksearch.py -n ../' | + | |
| - | To check the outcome of PeakSearch, you can load the peaks, which were found, into Fabian and see if they match the actual peak positions. To do this, you have to go click on // | + | Evaluate |
| - | ==== Experimental parameters | + | ==== Evaluate g-vectors |
| - | From these peaks you can now fit the experimental parameters. To do this, open [[software:imaged11|ImageD11]] by typing the following to the Konsole: | + | The next step in the process is the [[processing:compute_gvectors|calculations of g-vectors]]. For a given reflection in the crystal, **G**< |
| - | ImageD11_gui.py | + | |
| - | To load the PeakSearch file click on // | + | |
| - | Before | + | In order to do so, you need to precisely evaluate |
| - | Next you can have a look at the //tth/eta plot//. Most of the peaks should appear to be on imaginary vertical lines. Zoom in and check, if these lines are completely vertical. If not, you might have strain in your sample. If the line looks like a sinus curve of exactly one period this is due to a wrong beam center. To fix this, go back to //Edit parameters// | + | Follow |
| - | + | ||
| - | At some point you can click on // | + | |
| ==== Grain indexing ==== | ==== Grain indexing ==== | ||
| - | |||
| - | This step is necessary to get the G-vectors from your grains. | ||
| - | |||
| - | In ImageD11, click on // | ||
| To index the grains you need [[software: | To index the grains you need [[software: | ||
| - | |||
| - | To start GrainSpotter, | ||
| - | GrainSpotter.0.90 ' | ||
| - | or | ||
| - | grainspotter ' | ||
| - | For more information on which syntax you should use, check the [[software: | ||
| The outcome of the GrainSpotter algorithm is three files: a //.gff// file, a //.ubi// file and a //.log// file. These files contain information on the amount of grains it found, their UBi matrices and some more info. If you are already working with real data, you can now interpret what you got. | The outcome of the GrainSpotter algorithm is three files: a //.gff// file, a //.ubi// file and a //.log// file. These files contain information on the amount of grains it found, their UBi matrices and some more info. If you are already working with real data, you can now interpret what you got. | ||
| - | |||
| ==== Check your workflow ==== | ==== Check your workflow ==== | ||
| Line 102: | Line 94: | ||
| If all the simulated UBi matrices match the calculated ones, you can be quite sure that your workflow is running properly. In a next step you can work with real data. | If all the simulated UBi matrices match the calculated ones, you can be quite sure that your workflow is running properly. In a next step you can work with real data. | ||
| + | |||
processing/workflow_training.1550573904.txt.gz · Last modified: by smerkel
