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:20] – 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. |
| + | |||
| + | 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// | ||
| In [[software: | In [[software: | ||
| - | == Peak extraction == | + | ==== Peak extraction |
| At this point, you are ready with [[processing: | At this point, you are ready with [[processing: | ||
| Line 61: | Line 66: | ||
| Evaluate the outcome of the peak search by loading the peaks which were found into [[software: | Evaluate the outcome of the peak search by loading the peaks which were found into [[software: | ||
| - | == Evaluate g-vectors == | + | ==== Evaluate g-vectors |
| - | Create an input file with the ending //.inp//. For a start, simply modify an existing one like [[fileformat:inp:basic|this]]. Afterwards, you can run the simulation with [[software: | + | The next step in the process is the [[processing:compute_gvectors|calculations of g-vectors]]. For a given reflection in the crystal, **G**< |
| - | PolyXSim.py | + | |
| - | 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 | + | In order to do so, you need to precisely evaluate your experimental geometry |
| - | While the simulation is running you can already look at the images, which are already created. For this, open a new tab in the Konsole and open Fabian: | + | Follow |
| - | 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 | + | |
| - | 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 the m2 image (median) is used for this, because it is less affected by outliers. Before you do this, make sure you have a separate folder to avoid mixing up the actual data with the processed data! Raw data should never be modified! | + | |
| - | + | ||
| - | Look at the images in Fabian, go to //Image// --> // | + | |
| - | + | ||
| - | ==== Peak extraction ==== | + | |
| - | + | ||
| - | From these processed images you can now extract the peaks. Look at some random peaks from several images by zooming in (in Fabian) and check out their intensity. Try to estimate a threshold value which defines how intense a peak must be to be seen by the algorithm. Try to define a threshold, which separates peaks from background (everything above the threshold value is a peak, everything below is background). If you are not sure you can also define several threshold values. | + | |
| - | + | ||
| - | When you defined one (or more) threshold(s) you can start the [[software: | + | |
| - | peaksearch.py -n ../' | + | |
| - | + | ||
| - | To check the outcome | + | |
| - | + | ||
| - | ==== Experimental parameters ==== | + | |
| - | + | ||
| - | From these peaks you can now fit the experimental parameters. To do this, open [[software: | + | |
| - | ImageD11_gui.py | + | |
| - | To load the PeakSearch file click on // | + | |
| - | + | ||
| - | Before you check the plots you should enter the measurement parameters. Go to // | + | |
| - | + | ||
| - | 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// | + | |
| - | + | ||
| - | 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 138: | 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.1550575251.txt.gz · Last modified: by smerkel
