1 | <html> |
---|
2 | <head> |
---|
3 | <META NAME="Author" CONTENT="Brian H. Toby"> |
---|
4 | <title>EXPGUI -- EXCLEDT</title> |
---|
5 | </head> |
---|
6 | <BODY BGCOLOR="#FFFFFF"> |
---|
7 | |
---|
8 | <A HREF=http://www.ncnr.nist.gov> |
---|
9 | <IMG SRC="http://www.ncnr.nist.gov/images/ncnrtrans.gif" |
---|
10 | alt="Link to NIST Center for Neutron Research home page" |
---|
11 | ALIGN=RIGHT></A> |
---|
12 | <A HREF=http://www.nist.gov> |
---|
13 | <IMG SRC="http://www.ncnr.nist.gov/images/webidblue_2lineright.gif" |
---|
14 | alt="Link to National Institute of Standards & Technology home page" |
---|
15 | ALIGN=LEFT></A> |
---|
16 | <CENTER> |
---|
17 | <A Href="http://www.ncnr.nist.gov/programs/crystallography/software/tclpkgs.html"> |
---|
18 | <IMG SRC="tcltklogo100.gif" |
---|
19 | alt="Link to Tcl/Tk information"> |
---|
20 | </CENTER></A> |
---|
21 | <br clear=all><hr> |
---|
22 | |
---|
23 | <TABLE BORDER BGCOLOR="#FFFF40" ALIGN=RIGHT> |
---|
24 | <TR><TH><A Href="expgui.html">EXPGUI top</A> |
---|
25 | </TH><TH><A Href="liveplot.html">Previous page</A> |
---|
26 | </TH></TR></TABLE><BR CLEAR=ALL> |
---|
27 | |
---|
28 | |
---|
29 | <center><h1> |
---|
30 | EXPGUI Utilities (2), EXCLEDT |
---|
31 | </h1></center> |
---|
32 | This page documents the EXCLEDT utility program |
---|
33 | in the EXPGUI package. The purpose of this tool is to select graphically |
---|
34 | regions of data that will not be included in the refinement. |
---|
35 | The EXCLEDT program is called from the Powder/excledt |
---|
36 | menu item or from the "Data Limits/Exclude" button on the Histogram pane. |
---|
37 | <P> |
---|
38 | A common use for this is |
---|
39 | to adjust the lower 2theta/Q limit (maximum d-space/TOF) so that |
---|
40 | data where no reflections occur can be ignored. It |
---|
41 | is also common to start refinements with |
---|
42 | a somewhat limited range of data, raising the upper 2theta/Q limit |
---|
43 | (minimum d-space/TOF) later. (The ideal is to include all data where |
---|
44 | any peaks can be resolved in the final stages of refinement.) |
---|
45 | Note that there is a disadvantage to changing the data range, |
---|
46 | if one is using the Chebyschev polynomial |
---|
47 | (type 1 background function) to fit the background, as this function |
---|
48 | is scaled over the range of data. If the data range is changed, the |
---|
49 | background function will shift and thus must be refit each time the |
---|
50 | data range is changed. |
---|
51 | <P> |
---|
52 | A second purpose of EXCLEDT is to set and change excluded regions within the |
---|
53 | pattern. When a region is set as excluded, the data within that region |
---|
54 | are ignored with respect to the Rietveld refinement. Note that data should |
---|
55 | be removed only where there is a good explanation why the region cannot be |
---|
56 | accurately modeled. This is sometimes needed to deal with |
---|
57 | scattering from a sample |
---|
58 | container (although this can frequently be modeled as an additional |
---|
59 | phase, using Le Bail extraction for that phase when |
---|
60 | the container is badly textured). Excluded regions are also used occasionally |
---|
61 | when an impurity manifests itself with only a few minor peaks, although it is |
---|
62 | usually much better to model the impurity intensity as an additional phase |
---|
63 | (again using Le Bail extraction for that phase when the structure is unknown or |
---|
64 | the material has severe preferred orientation). Excluded regions are sometime |
---|
65 | needed when a section of pattern is affected by stacking faults. Another |
---|
66 | occasional appropriate use is to eliminate spurious intensity that is due |
---|
67 | instrumental malfunctions. |
---|
68 | It is important not to exclude peaks simply because they cannot be indexed. |
---|
69 | Such peaks may indicate a difference in symmetry or unit cell from the |
---|
70 | structural model, or some other error. |
---|
71 | It is also important that excluded regions be documented in the paper |
---|
72 | which describes the study. |
---|
73 | <P> |
---|
74 | <img SRC="exc1.gif" align=RIGHT alt="EXCLEDT Screen snapshot"> |
---|
75 | The EXCLEDT program displays the data in a graph, (see the example to right) |
---|
76 | with the observed data as data points (black X's by default) |
---|
77 | and the computed values as a line (red by default). Any excluded data points |
---|
78 | are shown in a different color (orange, by default). |
---|
79 | Lines (again orange, by default) at the |
---|
80 | bottom of the plot show the allowed data range as well as any excluded regions. |
---|
81 | Note that if POWPREF has been run more recently then GENLES, the calculated |
---|
82 | values are zero. |
---|
83 | The EXCLEDT program can plot data in the native units (2-theta, TOF, energy), |
---|
84 | converted to d-space units, or in the most ideal unit for |
---|
85 | diffraction analysis, Q (2 pi/d). |
---|
86 | <P> |
---|
87 | <br clear=all> |
---|
88 | |
---|
89 | <H3>Mouse use</H3> |
---|
90 | The mouse can be used in three ways depending on the button pressed |
---|
91 | in the lower portion of the window. |
---|
92 | <P> |
---|
93 | <img SRC="exc2.gif" BORDER=3 align=right alt="EXCLEDT Screen snapshot"> |
---|
94 | In <B>Zoom mode</B>, |
---|
95 | the cursor appears as |
---|
96 | cross hairs, and the mouse is used to select a region to be magnified by |
---|
97 | clicking on diagonal points in the region with the left mouse button |
---|
98 | (see below) or "zoomed out" with the right mouse button. |
---|
99 | <br clear=all> |
---|
100 | <P> |
---|
101 | <a name="AddRegion"></a> |
---|
102 | <img SRC="exc3.gif" align=RIGHT alt="EXCLEDT Screen snapshot"> |
---|
103 | In <B>Add Region mode</B>, the mouse is used to map out a region which that |
---|
104 | will be excluded from the refinement. When this button is selected, the |
---|
105 | mouse cursor changes to an arrow. After the left mouse is pressed once, |
---|
106 | a yellow background is shown for the excluded region and when the left mouse |
---|
107 | button is pressed a second time, the region is selected. |
---|
108 | If the right mouse button is pressed instead, it resets the region selection. |
---|
109 | <br clear=all> |
---|
110 | <img SRC="exc3a.gif" align=RIGHT alt="EXCLEDT Screen snapshot"> |
---|
111 | Before the region is added to the excluded list, a message is |
---|
112 | displayed to confirm this. This |
---|
113 | confirmation message can optionally be eliminated (See |
---|
114 | <a href="#prompt">Options/Prompt on add/del</a>.) |
---|
115 | <br clear=all> |
---|
116 | <P> |
---|
117 | In <B>Delete Region mode</B>, the mouse is used to select a region to be |
---|
118 | deleted, causing the data in that region to be included in the refinement. |
---|
119 | The cursor appears as a circle in the graph section of the window. After |
---|
120 | a region has been selected to delete, a message is |
---|
121 | displayed to confirm the region to be deleted from the exclusion list. |
---|
122 | This confirmation message can optionally be eliminated (See |
---|
123 | <a href="#prompt">Options/Prompt on add/del</a>.)<br clear=all> |
---|
124 | <P> |
---|
125 | <img SRC="exc4.gif" BORDER=3 align=right alt="EXCLEDT excluded regions snapshot"> |
---|
126 | <H3>Excluded Region Buttons</H3> |
---|
127 | At the bottom of the window is a set of buttons with the minimum and maximum |
---|
128 | limit on the data as well as a button for every excluded region. Pressing |
---|
129 | a button causes a window to be opened to edit that region by manually entering |
---|
130 | values. |
---|
131 | <P> |
---|
132 | <br clear=all> |
---|
133 | <img SRC="exc5.gif" align=right alt="EXCLEDT informational message"> |
---|
134 | If the upper data limit is raised (or d-min ls lowered) this message is |
---|
135 | displayed. The reason is that EXCLEDT cannot display data above the |
---|
136 | upper data limit until the changed limit has been processed in POWPREF. |
---|
137 | If you also want to see the computed intensities in this region, |
---|
138 | you will need to run GENLES as well, so this is also offered as an option. |
---|
139 | <br clear=all> |
---|
140 | <P> |
---|
141 | <a name="LimitTooHigh"></a> |
---|
142 | <img SRC="exc7.gif" align=right alt="EXCLEDT informational message"> |
---|
143 | Note that it is possible to set the upper data limit (lower d-min limit) |
---|
144 | well outside the range of data. If this is done, POWPREF will run slower |
---|
145 | because many unneeded reflections are being included in the computation. |
---|
146 | If this occurs and POWPREF is run inside EXCLEDT, a message such as |
---|
147 | that to the right is shown. Unless there is some specific reason |
---|
148 | (I do not know of one) it is probably best to accept this suggestion. |
---|
149 | <br clear=all> |
---|
150 | <P> |
---|
151 | <H3>Exiting EXCLEDT</H3> |
---|
152 | <img SRC="exc6.gif" align=right alt="EXCLEDT informational message"> |
---|
153 | EXCLEDT can be exited using the File/Exit menu item or by pressing the |
---|
154 | "Save & Exit" button, or by pressing Control-C. If the excluded regions or |
---|
155 | data limits are changed, a message to reminding you to run POWPREF is |
---|
156 | shown. Note that you <I>must</I> run POWPREF before GENLES, if these |
---|
157 | items are changed. |
---|
158 | <br clear=all> |
---|
159 | <P> |
---|
160 | <H3>File Menu Commands</H3> |
---|
161 | <img SRC="excm1.gif" BORDER=3 align=right alt="EXCLEDT menu snapshot"> |
---|
162 | <DL><DL> |
---|
163 | <DT>Tickmarks<DD>Invokes a submenu where tickmarks can be displayed or removed |
---|
164 | for each phase present in the histogram. |
---|
165 | See the Options/"Configure Tickmarks"menu item for information |
---|
166 | on tickmarks |
---|
167 | <DT>Histogram |
---|
168 | <DD>This allows a different histogram to be displayed. |
---|
169 | <DT>Set Min/Max Range |
---|
170 | <DD>This opens a window where the usable data range may be changed. |
---|
171 | <DT>Update Plot |
---|
172 | <DD>The causes EXCLEDT to read read the current histogram again from |
---|
173 | the datafile. If excluded region or data range |
---|
174 | changes have been made, POWPREF & GENLES may be run first. |
---|
175 | <DT>Make PostScript |
---|
176 | <DD>Creates a low quality PostScript file containing the LIVEPLOT |
---|
177 | output. See the Options/"Set PS output" button for where the file is created. |
---|
178 | <DT>Exit<DD>Saves any changes to the excluded regions or data range. |
---|
179 | If changes have been made, POWPREF & GENLES may be run. |
---|
180 | </DL></DL> |
---|
181 | |
---|
182 | <br clear=all> |
---|
183 | <img SRC="excm2.gif" BORDER=3 align=right alt="EXCLEDT menu snapshot"> |
---|
184 | <H3>Options Menu</H3> |
---|
185 | <DL><DL> |
---|
186 | <DT>Configure Tickmarks |
---|
187 | <DD>Tickmarks can be placed automatically, similar to their |
---|
188 | placement in POWPLOT or can be drawn one height to another. The default |
---|
189 | is for lines to be draw from "-Inf" to "Inf", which creates lines from the |
---|
190 | bottom to the top of the plot. The options for each phase allow the line to be changed between solid and dashed, color of the line can be specified and |
---|
191 | the vertical placement of the tickmarks can be specified. The "show" flag, |
---|
192 | set in the File/Tickmarks menu can also be changed here. |
---|
193 | <DT>Symbol Type |
---|
194 | <DD>This brings up a menu where the symbol type and size for the |
---|
195 | observed and excluded data points can be selected. |
---|
196 | <DT>Symbol Color |
---|
197 | <DD>The colors for all the displayed lines and symbols can be changed here. |
---|
198 | <DT>X units |
---|
199 | <DD>The x units can be selected here. The choices are |
---|
200 | "as collected" (2Theta/TOF/KeV), d-space (A) or Q (A<sup>-1</sup>) |
---|
201 | <DT>Include Legend |
---|
202 | <DD>The legend is the optional box in the upper left that defines the |
---|
203 | plot entries |
---|
204 | <a name="prompt"></a><DT>Prompt on add/del |
---|
205 | <DD>If this option is set, a prompt will be generated when excluded regions |
---|
206 | are added or deleted. |
---|
207 | <DT>Set PS output |
---|
208 | <DD>For UNIX this allows the file to be sent directly to a printer |
---|
209 | or can be saved in a file. For Windows, a file must be written. |
---|
210 | <DT>Set screen font |
---|
211 | <DD>This option is used to control the font used for menus, graphics and |
---|
212 | other aspects of windows. |
---|
213 | <DT>Save options |
---|
214 | <DD>Causes many of the options set in this menu to be saved in the <TT>.gsas_config</TT> file. |
---|
215 | </DL></DL> |
---|
216 | |
---|
217 | |
---|
218 | <br clear=all> |
---|
219 | |
---|
220 | <hr> |
---|
221 | <TABLE BORDER BGCOLOR="#FFFF40" ALIGN=RIGHT> |
---|
222 | <TR><TH><A Href="expgui.html">EXPGUI top</A> |
---|
223 | </TH><TH><A Href="liveplot.html">Previous page</A> |
---|
224 | </TH></TR></TABLE><BR CLEAR=ALL> |
---|
225 | |
---|
226 | <a href="http://www.ncnr.nist.gov/staff/toby/">Brian Toby</a> (<a href="mailto:brian.toby@nist.gov">Brian.Toby@NIST.GOV</a>) |
---|
227 | <br> |
---|
228 | $Revision: 437 $ $Date: 2009-12-04 23:06:09 +0000 (Fri, 04 Dec 2009) $ |
---|
229 | </body> |
---|
230 | </html> |
---|