32 | | === Step 3: read in the data file === |
33 | | |
34 | | Use the Data/Read image data menu item to read the data file into the current GSAS-II project. |
35 | | ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoIntegrateTilted/d1m1.png view]). |
36 | | Select the La_hex_+45deg-00015.tif data file and press Open. |
37 | | |
38 | | At this point the data tree window will have several entries |
39 | | ; the plot window |
40 | | shows a faint image |
41 | | ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoIntegrateTilted/d1w2.png view]) and a new window |
42 | | is opened to edit the image controls |
43 | | ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoIntegrateTilted/d1w3.png view]). |
44 | | |
45 | | === Step 4: Edit image parameters === |
46 | | |
47 | | Note that, alas, very few image formats allow for storage of important metadata about the image, so this information needs to be added manually. In this case set the '''wavelength to 0.10798'''. It is also helpful to change the display of the image so that it is easier to see the diffraction rings. Lowering the maximum intensity to 10,000 to 20,000 counts will help (note that this can be done by moving the slider, or by typing a value in the box and then clicking on another control). You may also wish to select another color scheme using the color bar selector. |
48 | | |
49 | | Alternately, the view of the image can be enhanced by displaying it on a logarithmic scale. Click on the window and press the upper or lowercase "L" key to toggle logarithmic plotting, or use the keypress selector button at the lower left of this window. |
50 | | |
51 | | === Step 5: Calibrate === |
52 | | |
53 | | First: |
54 | | Set the material used as a sample in the box labeled Calibrant |
55 | | |
56 | | Second: |
57 | | Use the Image Operations/Calibrate menu item (note this menu is on the Image Controls window or for the Mac, the Image |
58 | | Controls window must be active to place this into the system menu bar). At this point the status line on the bottom of the |
59 | | Image Controls window changes with a prompt to select points for calibration. |
60 | | ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoIntegrateTilted/d1w4.png view]). |
61 | | |
62 | | Third: |
63 | | Use the left mouse button to click on at least four locations on the innermost ring. As each point is defined a red "+" is added to the plot |
64 | | ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoIntegrateTilted/d1w5.jpg view]). |
65 | | |
66 | | To remove a point added in error click on that point with the right mouse button [on the Mac, if you have a single-button mouse, hold the Command (⌘) key down and click]. |
67 | | |
68 | | Fourth: |
69 | | When done, press the right mouse button well away from any points that have been added [on the Mac, if you have a single-button mouse, hold the Control key down and click]. |
70 | | |
71 | | The calibration is then performed. First the rings are located and an ellipse is optimized for each ring. The indexed rings are shown in blue and center of each ellipse is noted with a blue "+" |
72 | | ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoIntegrateTilted/d1w6.jpg view]). |
73 | | The derived calibration results are shown in the Image Controls window. |
74 | | ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoIntegrateTilted/d1w7.jpg view]). |
75 | | |
76 | | To see the actual points selected by the program, click on the "show ring picks?" check button |
77 | | ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoIntegrateTilted/d1w8.jpg view]). |
78 | | When this is done, it becomes clear that the points selected for the outermost ring are scattered between that and the next ring. This can be repaired by using the Image Operations/Clear Calibration menu item, lowering the area the program uses for searching for points by changing the "pixel search range" to 10 and then repeating the calibration steps (selecting points again on the first ring and then using the right mouse button) |
79 | | ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoIntegrateTilted/d1w10.jpg view]). |
80 | | This produces very slightly better calibration constants |
81 | | ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoIntegrateTilted/d1w9.jpg view]). |
82 | | |
83 | | Assuming that these calibration results will be applied to other images in the same GSAS-II project, click on "Use as default for all images." To save the project, including the now-derived calibration information, use the File/Save Project menu item associated with the data tree window. |
84 | | |
85 | | == Next step: [DemoCalibrateTilted Integrate the Data] == |
| 33 | At this point the data tree window will have a new entries for each azimuthal "slice" added to the data tree |
| 34 | ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoIntegrateTilted/d2w2.jpg view]). Also, |
| 35 | two plots are added to the plot window: One (with tab 2D Integration) shows the diffraction intensity as a function of |
| 36 | both 2-theta and (when there is more than one azimuthal integration region) azimuthal angle |
| 37 | ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoIntegrateTilted/d2w3.png view]); The other shows a |
| 38 | conventional 1-D powder pattern(s) for each "slice" |
| 39 | ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoIntegrateTilted/d2w4.png view]). |