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 15:05] – smerkel | processing:workflow_training [2019/09/04 18:47] (current) – ↷ Links adapted because of a move operation smerkel | ||
|---|---|---|---|
| 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 |
| - | The next step in the process is the [[processing: | + | The next step in the process is the [[processing: |
| In order to do so, you need to precisely evaluate your experimental geometry (beam center, detector distance, detector tilt, etc). Once this is done, g-vectors can be calculated directly from the location peaks extracted from the diffraction images. | In order to do so, you need to precisely evaluate your experimental geometry (beam center, detector distance, detector tilt, etc). Once this is done, g-vectors can be calculated directly from the location peaks extracted from the diffraction images. | ||
| - | Follow the procedure described in the [[processing: | + | Follow the procedure described in the [[processing: |
| ==== 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 100: | 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. | ||
| - | |||
| - | |||
| - | ==== 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 -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 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// --> // | ||
processing/workflow_training.1550585107.txt.gz · Last modified: by smerkel
