processing:start
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| processing:start [2019/02/15 16:24] – matthias | processing:start [2019/06/07 18:00] (current) – [Workflow: Getting a list of grains and their orientations] matthias | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| {{ :: | {{ :: | ||
| - | ===== Workflow for getting grains and their orientations (outline) | + | ===== Data collection |
| - | The goal of this workflow | + | Usually, the data is collected in synchrotron facilities by stepwise rotating |
| - | - Perform a calibration to obtain | + | |
| - | - If necessary, convert your series of images to //EDF// format (click [[xray_data:convertfileseries|here]] for further information on that). | + | |
| - | - Have a closer look at your images (with [[software: | + | |
| - | - Create median and average images. | + | |
| - | - Refine the average image with any refinement software (for example, [[software: | + | |
| - | - Remove diamond spots (and shadow). | + | |
| - | - Perform a [[software: | + | |
| - | - In [[software: | + | |
| - | - With the calculated g-vectors the grains will now be indexed, using [[software: | + | |
| - | ===== Workflow | + | ===== Workflow: Training with simulated data ===== |
| - | <WRAP center round tip 60%> | + | Starting |
| - | The following chapter deals with the actual | + | |
| - | </ | + | |
| - | ==== Calibration | + | But even when you are working with real data, you can compare your results with the outcome |
| - | ... | + | |
| - | ==== Conversion of the file series to EDF ==== | + | [[processing:workflow_training|Click here to train your workflow |
| - | Most of the used [[software:start|software]] can work only with [[fileformat: | + | |
| - | ==== Remove bad images | + | ===== Workflow: Find out the phases in your sample and their cell parameters ===== |
| - | The removal and exchange of bad images | + | This step is actually |
| - | **What is a bad image and why do they have to be removed? | + | |
| - | A bad image is one where you have artefacts which cannot be removed by any software. Frequent examples are | + | |
| - | 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 | + | ===== Workflow: Getting |
| - | | + | This workflow will provide you with a list of grains, as well as an orientation of each single grain in your sample. [[processing: |
| - | 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// --> // | + | ===== ... ===== |
| - | + | More to come ... | |
| - | ==== 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 [[software: | + | |
| - | image_math_petra 'name stem of the .edf file' 'first image number' | + | |
| - | or | + | |
| - | ./ | + | |
| - | + | ||
| - | For more information on which syntax you should use, check the [[software: | + | |
| - | * Image //m1// is the **average** image | + | |
| - | * Image //m2// is the **median** image | + | |
| - | * Image //m3// is the **??** image | + | |
| - | + | ||
| - | 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 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 // | + | |
| - | + | ||
| - | ==== 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 ==== | + | |
| - | + | ||
| - | This step is necessary to get the G-vectors from your grains. | + | |
| - | + | ||
| - | In ImageD11, click on // | + | |
| - | + | ||
| - | 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. | + | |
| - | + | ||
| - | + | ||
| - | ==== Check your workflow ==== | + | |
| - | + | ||
| - | If you did a simulation in advance, this is the time to check if you (and the software) did a good job or not. Open the //.gve// file which was just created by GrainSpotter and compare the g-vectors with the ones which were created by the simulation at the very beginning. The UBi matrices can be in a different order but should be the same. Remember that some rows or columns within the matrix can be inverted due to symmetry. | + | |
| - | + | ||
| - | <WRAP center round box 60%> | + | |
| - | **Example**: | + | |
| - | + | ||
| - | From PolyXSim | + | |
| - | | + | |
| - | -4.411 -0.360 -1.912 | + | |
| - | | + | |
| - | </ | + | |
| - | + | ||
| - | 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/start.1550244292.txt.gz · Last modified: (external edit)
