Changes between Version 5 and Version 6 of DemoAutoIndex
- Timestamp:
- Jul 30, 2011 5:56:59 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DemoAutoIndex
v5 v6 19 19 === Step 3: read in the data file === 20 20 21 Use the Data/Read powder datamenu item to read the data file into the current GSAS-II project.21 Use the '''Data/Read powder data''' menu item to read the data file into the current GSAS-II project. 22 22 23 Select the 11bmb_3844.fxyedata file in the first dialog and press Open.23 Select the {{{11bmb_3844.fxye}}} data file in the first dialog and press Open. 24 24 25 Select the 11bmb_3844.prminstrument parameter file in the second dialog and press Open.25 Select the {{{11bmb_3844.prm}}} instrument parameter file in the second dialog and press Open. 26 26 27 27 At this point the data tree window will have several entries … … 34 34 This pattern has much more data than we need, so it is helpful to cut down the range. Click on the Limits item in the data tree. A new window is created. Use the "changed" row of entry boxes to set Tmin and Tmax to 4 and 30 35 35 ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoAutoIndex/d3w3.png view]). 36 Note the green and red lines in the plot window move.36 Note the green and red vertical lines in the plot window move. 37 37 38 38 … … 62 62 === Step 6: Refine Peak Positions === 63 63 64 First, refine the peak intensities and the background. These parameters have their refinement flag turned on by default. Use the menu item Peak Fitting/LSQ !PeakFit. A window will show the progress of the refinement and will close when the least squares is complete.64 First, refine the peak intensities and the background. These parameters have their refinement flag turned on by default. Use the menu item '''Peak Fitting/LSQ !PeakFit'''. A window will show the progress of the refinement and will close when the least squares is complete. 65 65 66 66 Second, add refinement of the peak positions. This can be done by clicking on all the refinement flags for the individual peaks or it is possible to set them all at the same time using this recipe: … … 68 68 * double-click on the refine label above the peak position check-boxes. The entire column of checkboxes is highlighted in blue. Press the y key to turn on all refinement flags (n would turn them off). 69 69 70 Third, repeat the refinement using the Peak Fitting/LSQ !PeakFitmenu item.70 Third, repeat the refinement using the '''Peak Fitting/LSQ !PeakFit''' menu item. 71 71 72 72 Fourth, select peak widths for refinement. This can be done by refining sigma (Gaussian width) and/or gamma (Lorentzian width) for individual peaks, but here we constrain the peaks to follow an instrumental broadening equation. Select the Instrumental Parameters item in the data tree. … … 75 75 Select the refine flag checkbox for Gaussian U, V, W, Lorentzian X, Y and the asymmetry parameter SH/L. 76 76 77 Fifth, repeat the refinement. First click on the Peak List item in the data tree and then refine using the Peak Fitting/LSQ !PeakFitmenu item. At this point a good fit should be seen by zooming in on individual peaks. (For example see77 Fifth, repeat the refinement. First click on the Peak List item in the data tree and then refine using the '''Peak Fitting/LSQ !PeakFit''' menu item. At this point a good fit should be seen by zooming in on individual peaks. (For example see 78 78 [https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoAutoIndex/d3w7.png this]). The Rwp is ~6%. 79 79 80 80 === Prepare Indexing Peak List === 81 81 82 A separate list of peaks is kept for use in autoindexing. This list is manipulated by clicking on the Index Peak List item in the data tree. In the initially empty window created by this action, use menu item Index Peaks Operations/Loadto copy over the fitted peaks from the Peak List tree entry82 A separate list of peaks is kept for use in autoindexing. This list is manipulated by clicking on the Index Peak List item in the data tree. In the initially empty window created by this action, use menu item '''Index Peaks Operations/Load''' to copy over the fitted peaks from the Peak List tree entry 83 83 ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoAutoIndex/d4w1.png view]). 84 84 Note that by default all peaks are selected to be used. … … 87 87 88 88 Select the Unit Cells List data item. This brings up a window for indexing and cell refinement options 89 ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoAutoIndex/d4w2.png view]). For the most rapid search (since we know the right answer), select Cubic-P and launch the search using menu item Cell Index/Index Cell. The search then 90 runs and a list of possible matching cells is shown in the window 89 ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoAutoIndex/d4w2.png view]). For the most rapid search (since we know the right answer), select Cubic-P and launch the search using menu item '''Cell Index/Index Cell'''. The search then runs and a list of possible matching cells is shown in the window 91 90 ([https://subversion.xor.aps.anl.gov/trac/pyGSAS/attachment/wiki/DemoAutoIndex/d4w3.png view]). 92 91 … … 100 99 === Select/Refine Cell === 101 100 102 Select the top option, a 4.1568 A cell with M20 figure of merit of 2700. This indexes all peaks, though peak positions are not exactly perfect if one zooms in enough. Import the cell information using the Cell Index/Copy Cell menu option. Then optimize the cell by refining the lattice parameters and the two-theta zero: click on the refine checkbox next to the Zero offset value and then the Cell Index/Refine Cellmenu option. The a cell parameter value shifts from 4.15679 to 4.15684 when zero is refined.101 Select the top option, a 4.1568 A cell with M20 figure of merit of 2700. This indexes all peaks, though peak positions are not exactly perfect if one zooms in enough. Import the cell information using the '''Cell Index/Copy Cell''' menu option. Then optimize the cell by refining the lattice parameters and the two-theta zero: click on the refine checkbox next to the Zero offset value and then the '''Cell Index/Refine Cell''' menu option. The a cell parameter value shifts from 4.15679 to 4.15684 when zero is refined. 103 102 104 (Optional) Finally, use of the Cell Index/New phasemenu option allows one to assign a phase with these lattice parameters to the data set (histogram). A name for the new phase is then requested. This adds a Phases entry to the data tree, as well as an entry for the new phase. This new phase can be used in future code.103 (Optional) Finally, use of the '''Cell Index/New phase''' menu option allows one to assign a phase with these lattice parameters to the data set (histogram). A name for the new phase is then requested. This adds a Phases entry to the data tree, as well as an entry for the new phase. This new phase can be used in future code.