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 12:15] – 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 21: | Line 21: | ||
| </ | </ | ||
| - | == Producing data by simulation == | + | ==== Producing data by simulation |
| This step will [[processing: | This step will [[processing: | ||
| Line 29: | Line 29: | ||
| Typically, at the end of the simulation, we work with | Typically, at the end of the simulation, we work with | ||
| * the generated diffraction images, which we will try to process, | * the generated diffraction images, which we will try to process, | ||
| - | * the generated list of grains (in [[fileformat: | + | * the generated list of grains (in //.gff// format), which we will compare to our indexing. |
| - | == Evaluating the simulated diffraction images == | + | ==== Evaluating the simulated diffraction images |
| You should look at the simulated diffraction images with [[software: | You should look at the simulated diffraction images with [[software: | ||
| * locate diffraction peaks, | * locate diffraction peaks, | ||
| * evaluate their intensity and that of the surrounding background, | * evaluate their intensity and that of the surrounding background, | ||
| - | * understand the [[processing:o_matrix|concept of the O-Matrix]]. | + | * understand the [[dac_experiments:geometry|concept of the O-Matrix]]. |
| [[software: | [[software: | ||
| Line 42: | Line 42: | ||
| 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? | 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 |
| - | Typically, with simulate | + | 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/ |
| The average image is a representation of the data that includes | The average image is a representation of the data that includes | ||
| * the background, | * the background, | ||
| * the diffraction from the // | * the diffraction from the // | ||
| - | * the diffraction from the sample grains, that give rise to well-defined diffraction spots. | + | * the diffraction from the //sample grains//, that give rise to well-defined diffraction spots. |
| - | In [[software: | + | The median image is a representation of the data that includes |
| + | * the background, | ||
| + | * the diffraction | ||
| + | The diffraction | ||
| - | Create an input file with the ending //.inp//. For a start, simply modify an existing one like [[fileformat: | + | In [[software:fabian|Fabian]], you can subtract |
| - | PolyXSim.py -i ' | + | |
| - | + | ||
| - | 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.). | + | |
| - | + | ||
| - | While the simulation is running | + | |
| - | fabian.py | + | |
| - | + | ||
| - | This is convenient because you can already see at this point if your simulation works. And in case it does not, you can stop the simulation process right now and you don't need to wait until all images are created, which can take very long time. While you're at it, check also the O-matrix. You find it in Fabian under //Image// --> // | + | |
| - | + | ||
| - | ==== 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 the average and median you use the python script //median.py//. An alternative way is [[software: | + | |
| - | median.py -h | + | |
| - | The help will pop up and tell you how to use it. | + | |
| - | + | ||
| - | The calculation will create an additional //.edf// file. | + | |
| - | + | ||
| - | Next, the actual images have to be subtracted by one of these three images. Usually | + | |
| - | + | ||
| - | Look at the images in Fabian, go to //Image// --> // | + | |
| ==== 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 128: | 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.1550574953.txt.gz · Last modified: by smerkel
