[608] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <title>Use of the GSAS2CIF program</title> |
---|
| 4 | <meta name="keywords" content="crystallography, Rietveld, diffraction, |
---|
| 5 | GSAS, EXPGUI, CIF"> |
---|
| 6 | </HEAD> |
---|
| 7 | <style> |
---|
| 8 | A:link {text-decoration:none} |
---|
| 9 | A:vlink {text-decoration:none} |
---|
| 10 | </style> |
---|
| 11 | |
---|
| 12 | <BODY BGCOLOR="#FFFFFF" |
---|
| 13 | topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" |
---|
| 14 | text="#000000" link="#0033ff" vlink="#0033ff" alink="#0033ff"> |
---|
| 15 | |
---|
| 16 | <? |
---|
| 17 | include("/var/www/include/navigation.inc"); |
---|
| 18 | include("/var/www/include/utility.inc"); |
---|
| 19 | ?> |
---|
| 20 | <font face="arial, helvetica, sans-serif"> |
---|
| 21 | |
---|
| 22 | <BLOCKQUOTE> |
---|
| 23 | |
---|
| 24 | <TABLE BORDER BGCOLOR="#FFFF40" ALIGN=RIGHT> |
---|
| 25 | <TR><TH><A Href="expgui.html">EXPGUI top</A> |
---|
| 26 | </TH><TH><A Href="excledt.html">Previous page</A> |
---|
| 27 | </TH></TR></TABLE><BR CLEAR=ALL> |
---|
| 28 | |
---|
[610] | 29 | <img src="http://www.gsas.org/Articles/gsas-logo.gif" alt="Greater Seattle Aquarium Society Logo (www.gsas.org). Used with permission" HEIGHT=80 WIDTH=150 ALIGN=RIGHT> |
---|
[608] | 30 | <center><h1> |
---|
| 31 | <HR noshade width="75%" size="2" align="center"> |
---|
| 32 | Using the GSAS2CIF program |
---|
| 33 | <BR> |
---|
| 34 | to export |
---|
| 35 | <A Href="http://www.ncnr.nist.gov/programs/crystallography/software/gsas.html"> |
---|
| 36 | GSAS</A> |
---|
| 37 | results |
---|
| 38 | <HR noshade width="75%" size="2" align="center"> |
---|
| 39 | </h1></center> |
---|
| 40 | |
---|
| 41 | <P> |
---|
| 42 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.iucr.org/iucr-top/cif/"> |
---|
| 43 | The crystallographic information file, |
---|
| 44 | (CIF</A>) was developed by the |
---|
| 45 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.iucr.org"> |
---|
| 46 | IUCr</A> in the early 1990's |
---|
| 47 | as a standardized format to document single-crystal |
---|
| 48 | structure determinations and to exchange the results between laboratories. |
---|
| 49 | In the late 1990's, the |
---|
| 50 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.iucr.org/iucr-top/cif/pd/"> |
---|
| 51 | pdCIF</A> dictionary was developed to allow CIF to |
---|
| 52 | document powder diffraction measurements, as well as Rietveld results. |
---|
| 53 | A very short introduction to CIF is included at the |
---|
| 54 | <a href="#CIFintro">end of this document.</a> |
---|
| 55 | <P> |
---|
| 56 | The GSAS2CIF program is used to create CIFs from GSAS results. |
---|
| 57 | This web page documents concepts within the program as well as how the program |
---|
| 58 | is used. |
---|
| 59 | <P> |
---|
| 60 | <H4>Overview of the steps to create a CIF in GSAS</H4> |
---|
| 61 | <BLOCKQUOTE> |
---|
| 62 | <OL> |
---|
| 63 | <LI>Complete (<I>ha!</I>) your refinement, being sure to run GENLES after |
---|
| 64 | making any changes to the .EXP file with EXPEDT/EXPGUI. |
---|
| 65 | <LI>Run DISAGL to compute interatomic distances and angles. |
---|
| 66 | <LI>(Optional) Edit the "<a href="#pubflag"> |
---|
| 67 | publication flags</a>" in the distance and angle listings. |
---|
| 68 | <LI>(Optional) Use EXPGUI program |
---|
| 69 | <a href="#filltemplate">FillTemplate</A> |
---|
| 70 | to customize copies of CIF template files in the current directory, or |
---|
| 71 | manually copy these files to the current directory |
---|
| 72 | and use a text editor. |
---|
| 73 | <LI>Run GSAS2CIF (this creates experiment-specific |
---|
| 74 | copies of the template files). |
---|
| 75 | <LI>Edit the template files (for example, using |
---|
| 76 | <a href="#filltemplate">FillTemplate</A>) to include information. |
---|
| 77 | <LI>Run GSAS2CIF again, to incorporate the revised versions of the |
---|
| 78 | template files into the complete .CIF file. |
---|
| 79 | <P>... <I>and if you are like me</I>...<P> |
---|
| 80 | <LI>try out a few more ideas in GENLES. |
---|
| 81 | <LI>Run DISAGL. |
---|
| 82 | <LI>Run GSAS2CIF<P>... <I>repeat steps 8-10 until really finished</I>... |
---|
| 83 | (<a href="#ps">see quote</a>). |
---|
| 84 | </OL> |
---|
| 85 | </BLOCKQUOTE> |
---|
| 86 | <H4>Structure of the GSAS2CIF program</H4> |
---|
| 87 | <BLOCKQUOTE> |
---|
| 88 | <P> |
---|
| 89 | |
---|
| 90 | The GSAS2CIF program is used to prepare CIF files containing results |
---|
| 91 | from GSAS. It should be noted many important types of information that |
---|
| 92 | are needed to describe the sample and the measurement are not |
---|
| 93 | supplied as input to GSAS. A few examples of information that |
---|
| 94 | should likely be included in a CIF, but are not defined within GSAS are: |
---|
[610] | 95 | the data measurement temperature, sample preparation conditions, |
---|
[608] | 96 | publication information, and so on. |
---|
[610] | 97 | If the CIF will be used as supplementary material, to accompany a |
---|
[608] | 98 | publication, this sort of documentary information certainly should be |
---|
| 99 | supplied, so that the CIF has value for archival and database purposes. |
---|
| 100 | If a CIF is being prepared for submission to |
---|
| 101 | an <I>Acta Crystallographia</I> journal, the IUCr has |
---|
| 102 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=ftp://ftp.iucr.org/pub/rietform.cif"> |
---|
| 103 | template with a recommended list of CIF data items. |
---|
| 104 | </A> |
---|
| 105 | This template has been utilized for creation of the template files |
---|
| 106 | distributed with GSAS/EXPGUI. |
---|
| 107 | <P> |
---|
| 108 | <H5>Template Files</H5> |
---|
| 109 | Since the GSAS2CIF program cannot obtain much of the information needed |
---|
| 110 | to create a CIF that documents a structural determination, |
---|
| 111 | this information must be supplied by the person running the program in |
---|
| 112 | the form of template files. |
---|
| 113 | The GSAS2CIF program simply copies this information |
---|
| 114 | from template files into the CIF created by GSAS2CIF. |
---|
| 115 | Three separate template files are |
---|
| 116 | used with GSAS2CIF: |
---|
| 117 | <OL> |
---|
| 118 | <LI>one with publication and other overall information, |
---|
| 119 | <LI> one with information about the sample & specimen and |
---|
| 120 | <LI> one with information about diffraction instrumentation and |
---|
| 121 | data collection parameters. |
---|
| 122 | </OL> |
---|
| 123 | Note that as distributed, these files do not contain any information, |
---|
| 124 | but rather define a set of suggested fields where the user can provide |
---|
| 125 | this information. Since much of the information in these fields will |
---|
| 126 | be the same for all CIF's prepared by a researcher or using a specific |
---|
| 127 | instrument, it will be a good idea to create customized versions of |
---|
| 128 | these template files and thus |
---|
| 129 | avoid inputing the same information multiple times. |
---|
| 130 | <P> |
---|
| 131 | When GSAS2CIF is used to create a CIF file for an experiment named |
---|
| 132 | <I>expnam</I> (e.g. from file <I>expnam</I>.EXP), the GSAS2CIF program |
---|
| 133 | creates CIF file <I>expnam</I>.cif containing GSAS results. Information |
---|
| 134 | from a series of template files is copied directly into the CIF. There will |
---|
| 135 | be N+M+1 template files, where N is the number of phases and M is the number |
---|
| 136 | of data histograms. The files are named as follows: |
---|
| 137 | <OL> |
---|
| 138 | <LI><I>expnam</I>_publ.cif for the publication/overall information template file; |
---|
| 139 | <LI><I>expnam</I>_phase<U>n</U>.cif for the N sample/specimen template file(s); |
---|
| 140 | <LI><I>expnam</I>_<I>INST</I><U>mm</U>.cif for the |
---|
| 141 | the M instrument/data sample/specimen template file(s), where <I>INST</I> is the instrument name |
---|
| 142 | (<a href="#iname">see below</a>). |
---|
| 143 | </OL> |
---|
| 144 | If these files do not exist, they are created and filled |
---|
| 145 | with the contents of master versions of the template files. |
---|
| 146 | In the case of the |
---|
| 147 | <I>expnam</I>_publ.cif and <I>expnam</I>_phase<U>n</U>.cif files, |
---|
| 148 | template files named template_publ.cif and template_phase.cif |
---|
| 149 | are read, if present from the same directory where the <I>expnam</I>.EXP |
---|
| 150 | file is found, and if not present there, from the GSAS data directory. |
---|
| 151 | In the case of the <I>expnam</I>_<I>INST</I><U>mm</U>.cif file(s), the |
---|
| 152 | program first looks for files named template_<I>INST</I>.cif in the |
---|
| 153 | current directory and the GSAS data directory and if that file is not |
---|
| 154 | found, file template_instrument.cif is read from the current directory |
---|
| 155 | and if not found, the GSAS data directory. |
---|
| 156 | This somewhat complex series of template files allows for the creation |
---|
| 157 | default template files for commonly-used instruments as well as the |
---|
| 158 | potential for reuse of the other template files, by copying these files |
---|
| 159 | as needed and also allows the GSAS2CIF program to be reused to update |
---|
| 160 | the CIF as needed without loss of input information. |
---|
| 161 | |
---|
| 162 | <P><B>Note</B>, that users should avoid editing the |
---|
| 163 | final <I>expnam</I>.cif file, but rather should edit the |
---|
| 164 | <I>expnam</I>_*.cif template files and then rerun GSAS2CIF to incorporate |
---|
| 165 | the revised template files into a new version of the <I>expnam</I>.cif file. |
---|
| 166 | In this way, if GSAS2CIF is rerun at a later time, |
---|
| 167 | the crystallographic results in the .CIF are updated and the |
---|
| 168 | template information is retained automatically. |
---|
| 169 | This editing can be done with any ASCII text editor, but an application |
---|
| 170 | has been included within EXPGUI, |
---|
| 171 | <a href="#filltemplate">FillTemplate</A>, for this purpose. |
---|
| 172 | <P> |
---|
| 173 | <H5>Other Input Files</H5> |
---|
| 174 | In addition to the reading the GSAS experiment file (file <I>expnam</I>.EXP), |
---|
| 175 | GSAS2CIF also reads the variance-covariance matrix created in GENLES |
---|
| 176 | (from file <I>expnam</I>.CMT) and a table of interatomic distances and angles |
---|
| 177 | created from program DISAGL (file <I>expnam</I>.DISAGL). If these files |
---|
| 178 | cannot be read, GSAS2CIF produces a warning message, since the CIF will be |
---|
| 179 | incomplete without this information. |
---|
| 180 | Note that the .CMT and .DISAGL are both derived from GENLES output and thus |
---|
| 181 | the .EXP file must have been used to run GENLES and then DISAGL just prior to |
---|
| 182 | running GSAS2CIF. If you edit the .EXP file or go back to |
---|
| 183 | an archived experiment file and do not rerun GENLES and then DISAGL, |
---|
| 184 | (<I>expnam</I>.O<I>nn</I>), the most recent <I>expnam</I>.CMT and |
---|
| 185 | <I>expnam</I>.DISAGL will be out-of-sync with the .EXP contents. GSAS2CIF |
---|
| 186 | will try to spot this and warn you, but some errors may be hard to catch. |
---|
| 187 | </BLOCKQUOTE> |
---|
| 188 | <a name="iname"></a><H4>Instrument Name</H4> |
---|
| 189 | <BLOCKQUOTE> |
---|
| 190 | An instrument name is needed for every GSAS histogram. It is best if this |
---|
| 191 | name is unique to a specific instrument, so for commercial instruments, |
---|
| 192 | it is best if this name contains part of the instrument serial number |
---|
| 193 | or the institution name, etc. |
---|
| 194 | The instrument name may be defined in the instrument parameter file, |
---|
| 195 | by inclusion of a record of type |
---|
| 196 | <Font type=fixed>"INS nn INAME </font><I>Instrument name</I>". |
---|
| 197 | If this name is not defined in the original instrument parameter file, |
---|
| 198 | when GSAS2CIF is run, it will request an instrument name for each histogram, |
---|
| 199 | and this information will be added to the GSAS experiment file. |
---|
| 200 | Note that the vertical bar character, (|), should not be used in instrument |
---|
| 201 | names. |
---|
| 202 | </BLOCKQUOTE> |
---|
| 203 | <a name="pubflag"> |
---|
| 204 | <H4>Publication/Non-Publish Flag for Distances and Angles</H4> |
---|
| 205 | </a> |
---|
| 206 | <BLOCKQUOTE> |
---|
| 207 | The DISAGL program will tabulate all interatomic distances within |
---|
| 208 | specified interatomic radii. These radii may be modified using EXPEDT |
---|
| 209 | (but not at present EXPGUI). All distances and angles listed by DISAGL in |
---|
| 210 | the <I>expnam</I>.LST file will be recorded in a more compact format in |
---|
| 211 | file named <I>expnam</I>.DISAGL. All these distances and angles will then be |
---|
| 212 | included in the CIF file when GSAS2CIF is run. |
---|
| 213 | <P> |
---|
| 214 | Note that when an IUCr journal publication is prepared from a CIF, these |
---|
| 215 | distances and angles are abstracted directly into the publication tables |
---|
| 216 | from the CIF, |
---|
| 217 | provided that a special CIF flag for each distance/angle |
---|
| 218 | (_geom_bond_publ_flag and _geom_angle_publ_flag) indicates that these values |
---|
[610] | 219 | should be published. The character in the first column of the |
---|
[608] | 220 | <I>expnam</I>.DISAGL indicates the value for this flag, when the |
---|
[610] | 221 | distances/angles are tabulated in the CIF. If this character is anything |
---|
| 222 | other than "Y" or "y", the |
---|
| 223 | distance/angle is flagged as "do not publish". A value of "Y" or "y" |
---|
| 224 | indicates |
---|
[608] | 225 | this flag should be set to "publish." At present, the only way to change this |
---|
| 226 | flag is manually, with a text editing program, such as wordpad or emacs. |
---|
| 227 | An EXPGUI program, |
---|
[635] | 228 | <a href="#cifselect">CIFSelect</A>, is available for this chore. |
---|
[608] | 229 | <P> |
---|
[610] | 230 | When DISAGL is first run, this flag character is set to N (do not publish) |
---|
[608] | 231 | for all distances and angles. However, if any of these flags are changed in |
---|
| 232 | the .DISAGL file, these flag settings will be retained if DISAGL is rerun. |
---|
| 233 | |
---|
| 234 | </BLOCKQUOTE> |
---|
| 235 | <a name="filltemplate"> |
---|
[652] | 236 | <H2>The FillTemplate program</H2> |
---|
[608] | 237 | <BLOCKQUOTE> |
---|
| 238 | </a> |
---|
| 239 | The EXPGUI FillTemplate program is used to edit the CIF template files |
---|
| 240 | used within GSAS2CIF. The <I>expnam</I>_*.cif files are edited by this |
---|
| 241 | program, if they exists. If these files are not found (because GSAS2CIF |
---|
| 242 | has not been run), the template_*.cif in the current directory are edited. |
---|
| 243 | If there these files are not found as well, the template_*.cif in the GSAS |
---|
| 244 | data directory are copied to the current directory and are then made available |
---|
| 245 | for editing. |
---|
| 246 | <P> |
---|
| 247 | The FillTemplate program is accessed in EXPGUI from the "CIF Export" submenu |
---|
| 248 | of the "Import/Export" menu. The FillTemplate program |
---|
| 249 | opens a window, as is shown below: |
---|
| 250 | </BLOCKQUOTE> |
---|
[652] | 251 | </BLOCKQUOTE> |
---|
[608] | 252 | <img src="ciffill1.gif" alt="View of FillTemplate window"> |
---|
| 253 | <BLOCKQUOTE> |
---|
[652] | 254 | <BLOCKQUOTE> |
---|
| 255 | The box on the left side of the window displays the data names in the CIF |
---|
[608] | 256 | as a hierarchical tree. Note that subentries can be displayed or hidden |
---|
[652] | 257 | by clicking on the +/- sign to the right of each grouping. For example, |
---|
| 258 | by default the data names contained in each loop are not shown. |
---|
| 259 | However, clicking on the + sign to the right of the "loop_0" listing |
---|
| 260 | causes the data names in the loop to be shown (as in |
---|
| 261 | the <a href="#loopfig">example below</a>.) |
---|
[608] | 262 | <P> |
---|
[652] | 263 | Clicking on an individual data name causes the |
---|
| 264 | associated value to be displayed on the right. The value associated |
---|
| 265 | with the data name can be edited by |
---|
| 266 | clicking on the entry box. The information you enter is copied into the |
---|
| 267 | in-memory copy of the CIF when you click on another |
---|
| 268 | data name, etc. |
---|
[608] | 269 | <P> |
---|
[652] | 270 | In the example shown above, the data name |
---|
| 271 | <tt>_cell_measurement_temperature</tt> has been selected. |
---|
| 272 | This is defined in the |
---|
| 273 | CIF dictionary as a number |
---|
| 274 | between 0 and infinity with |
---|
| 275 | units of Kelvins. These units (K) are displayed adjacent to the entry box. |
---|
| 276 | When appropriate input is validated to require |
---|
| 277 | that valid numbers in the allowed range are input or that |
---|
| 278 | standard uncertainties (esd's) are entered only where allowed. |
---|
| 279 | Likewise, if the CIF dictionary defines a enumerated list of values |
---|
| 280 | for a data name, a menu button is offered in place of an entry box. In |
---|
| 281 | this way, only a valid entry from the list can be selected. |
---|
[608] | 282 | <P> |
---|
| 283 | The controls on the bottom of the window have the following effects: |
---|
| 284 | |
---|
| 285 | <BLOCKQUOTE> |
---|
| 286 | <DL> |
---|
| 287 | <P><DT><B>Template file</B><DD> |
---|
| 288 | The menu button labeled "Template file" offers a list of template files. This |
---|
| 289 | button can be used to select a file to be edited. If changes have been made |
---|
| 290 | to the current CIF, that have not been saved to disk, the user is offered |
---|
| 291 | a chance to save or discard these changes. |
---|
| 292 | <P><DT><B>Next ? in template</B><DD> |
---|
| 293 | If the button labeled "Next ? in template" is pressed, |
---|
| 294 | the program scans forward |
---|
| 295 | in the current file, and if needed through subsequent files, for a data item |
---|
| 296 | where the value is a single question mark (?), since this value indicates |
---|
| 297 | a item where a value has not been specified. Note that the _journal_ |
---|
| 298 | data items, which are intended to be used by <I>Acta Crystallographia</I> |
---|
| 299 | editors, are ignored by this button. |
---|
| 300 | <P><DT><B>Exit</B><DD> |
---|
| 301 | The "Exit" button causes the program to exit. If any changes have been |
---|
| 302 | made to a data item or the CIF has been changed, but have not been saved, |
---|
| 303 | a chance is offered to save these items. |
---|
[652] | 304 | <P><DT><a name="cifcontents"><B>Show (Hide) CIF contents</B></A><DD> |
---|
[608] | 305 | The "Show CIF contents" button causes a window to be displayed |
---|
| 306 | that shows the text of the CIF, as shown below. As CIF data items |
---|
| 307 | are selected by clicking on data names or through use of the other buttons, |
---|
| 308 | the window is scrolled forward or backward to show the appropriate section. |
---|
| 309 | Note that it is possible to make editing changes directly to the CIF |
---|
| 310 | using this window, but the program cannot verify that these edits |
---|
| 311 | have the correct syntax. Further, the program will not note that changes |
---|
| 312 | have been made to the CIF |
---|
| 313 | so another section of the file must be changed, before the edits can be |
---|
[652] | 314 | saved to disk (see the <a href="#saveedits">Save</a> button). |
---|
[608] | 315 | <P> |
---|
| 316 | After the "Show CIF contents" button is pressed, the label changes to |
---|
| 317 | "Hide CIF contents"; pressing the button again causes the window to be hidden. |
---|
| 318 | <BR> |
---|
| 319 | <img src="cif_contents.gif" alt="View of CIF text window"> |
---|
[652] | 320 | <P><DT><B>Show (Hide) CIF definitions</B><DD> |
---|
| 321 | As CIF data names are selected, their definitions are shown in the |
---|
[608] | 322 | CIF Definitions window, as shown below. |
---|
| 323 | After the "Show CIF definitions" button is pressed, the label changes to |
---|
| 324 | "Hide CIF definitions"; pressing the button again causes the |
---|
| 325 | window to be hidden. |
---|
| 326 | <BR> |
---|
| 327 | <img src="cifdef.gif" alt="View of CIF definitions window"> |
---|
[652] | 328 | |
---|
| 329 | <P><DT><a name="undo"><B>Undo</B></a><DD> |
---|
| 330 | As changes are made to the CIF template, they are recorded and can be |
---|
| 331 | reversed using the "Undo" button. There is no limit to the number of changes |
---|
| 332 | that are recorded. However, changes cannot be undone after the CIF has been |
---|
| 333 | saved to disk. |
---|
| 334 | <P><DT><a name="redo"><B>Redo</B></a><DD> |
---|
| 335 | If changes have been reversed with the <a href="#undo">"Undo"</a> button, |
---|
| 336 | the changes can be |
---|
| 337 | reapplied using the "Redo" button. The list of changes available for "Redo" |
---|
| 338 | is cleared when a new edit is made or when the CIF is saved. |
---|
| 339 | |
---|
| 340 | <P><DT><a name="saveedits"><B>Save</B></a><DD> |
---|
[608] | 341 | Changes made to the CIF are not saved to the disk file automatically, |
---|
| 342 | unless the <a href="#autosave">Auto-Save</a> checkbutton is set. When changes |
---|
| 343 | have been made, but not saved to disk, this button is made active. |
---|
| 344 | <P><DT><a name="autosave"><B>Auto-Save</B></a><DD> |
---|
| 345 | When the Auto-Save mode is not selected, |
---|
| 346 | changes made to the in-memory copy of the CIF that is displayed in the |
---|
| 347 | <a href="#cifcontents">CIF Contents window</a> are not written to |
---|
[652] | 348 | the disk file until the "<a href="#saveedits">Save</a>" |
---|
[608] | 349 | button is pressed. If the |
---|
| 350 | Auto-Save mode is selected, these changes are saved to disk automatically. |
---|
| 351 | </DL> |
---|
| 352 | </BLOCKQUOTE> |
---|
[652] | 353 | <H3>CIF loops</H3> |
---|
| 354 | <P> |
---|
| 355 | CIF loops allow multiple values to be associated with one or more data items, |
---|
| 356 | in effect defining a table of data. |
---|
| 357 | Clicking on a loop, causes all the data names in the loop to be displayed, |
---|
| 358 | as is shown below. |
---|
| 359 | </BLOCKQUOTE> |
---|
| 360 | </BLOCKQUOTE> |
---|
| 361 | <a name="loopfig"></a> |
---|
| 362 | <img src="ciffill.gif" alt="View of FillTemplate window"> |
---|
| 363 | <BLOCKQUOTE> |
---|
| 364 | <BLOCKQUOTE> |
---|
| 365 | When a loop is displayed, extra controls appear, as are defined below. |
---|
| 366 | <BLOCKQUOTE> |
---|
| 367 | <DL> |
---|
| 368 | <P><DT><a name="loopspinbox"><B>Loop element #</B></a><DD> |
---|
| 369 | The Loop element #" spinbox" is used to select |
---|
| 370 | which "row" from the loop is displayed. The up arrow advances to the next |
---|
| 371 | row, while the down arrow reverses by one entry. Numbers can also be typed into |
---|
| 372 | the entry box; the number is accepted when Enter is pressed. |
---|
| 373 | The keyboard up and down arrows can also |
---|
| 374 | be used to advance between entries. Other keys such as Page Up, Home, etc. |
---|
| 375 | advance in large increments. |
---|
| 376 | <P><DT><B>Add to loop</B><DD> |
---|
| 377 | A new row can be added to the end of a |
---|
| 378 | loop using the "Add to loop" button. The value for each new entry |
---|
| 379 | is initialized as "?" (meaning value unknown or unspecified.) |
---|
| 380 | <P><DT><B>Delete loop entry</B><DD> |
---|
| 381 | This deletes the current row from the loop. |
---|
| 382 | First select the row to delete with the |
---|
| 383 | "<a href="#loopspinbox">Loop element #</A>" |
---|
| 384 | spinbox. Note that the values are displayed for confirmation before the |
---|
| 385 | delete operation is performed. |
---|
| 386 | It is not possible to delete all entries from a loop, so |
---|
| 387 | this button is disabled when a loop has only a single row defined. |
---|
| 388 | </DL> |
---|
| 389 | </BLOCKQUOTE> |
---|
| 390 | It is also possible to click on the data name for a item inside a loop, in this |
---|
| 391 | case, all entries for that data item in the loop |
---|
| 392 | are displayed (a column). |
---|
[608] | 393 | |
---|
[652] | 394 | |
---|
[608] | 395 | </BLOCKQUOTE> |
---|
| 396 | <a name="cifselect"> |
---|
[652] | 397 | <H2>The CIFSelect utility</H2> |
---|
[608] | 398 | <BLOCKQUOTE> |
---|
| 399 | </a> |
---|
[635] | 400 | The CIFselect utility is available within EXPGUI |
---|
| 401 | to view interatomic distances and |
---|
| 402 | angles generated by DISAGL and to set the CIF publication flags for these |
---|
| 403 | values. CIFselect is accessed in EXPGUI from the "CIF Export" submenu |
---|
| 404 | of the "Import/Export" menu. CIFselect opens two windows, one for controlling |
---|
| 405 | the program and one to display the distances. |
---|
| 406 | <P> |
---|
| 407 | <img src="cifsel1.gif" alt="View of CIFselect window" align="right"> |
---|
| 408 | The control window is shown to the right. The buttons on this window are |
---|
| 409 | described below. |
---|
| 410 | <BR clear=all> |
---|
| 411 | <DL> |
---|
| 412 | <P><DT><B>Select Phase</B><DD> |
---|
| 413 | This provides a list of phases. |
---|
| 414 | <P><DT><B>Select Atom</B><DD> |
---|
| 415 | This provides a list of atoms for the current phase. |
---|
| 416 | <P><DT><B>Response to Mouse Click</B><DD> |
---|
| 417 | When the mouse is clicked on a distance or angle (see below), |
---|
| 418 | the publication flag for the may be changed. The effect is dictated by |
---|
| 419 | the mode selected here. In "<B>Toggle</B>" mode the publication flag |
---|
| 420 | is set to the opposite of the previous value. In "<B>Set</B>" mode, |
---|
| 421 | the publication flag will be set to "Y" (publish), regardless of the |
---|
| 422 | previous state of the flag. |
---|
| 423 | In "<B>Clear</B>" mode, |
---|
| 424 | the publication flag will be set to "N" (do not publish), regardless of the |
---|
| 425 | previous state of the flag. |
---|
| 426 | <P><DT><B>Distance selection: select matching angles?</B><DD> |
---|
| 427 | When this option is set to Yes, the publication flag will be set to "Yes" for |
---|
| 428 | all angles where both the publication flags for the distances are also set |
---|
| 429 | to "Yes". This is illustrated in the window shown below. |
---|
| 430 | Note that the distance AL3-O6_a is set to be not published. The five angles |
---|
| 431 | that involve atom O6_a were automatically set to be not published. |
---|
| 432 | If this option is set to Yes, turning |
---|
| 433 | on the publication flag for distance AL3-O6_a would cause the publication |
---|
| 434 | flag to be set on as well. If this option is set to "No", angle flags |
---|
| 435 | must be changed individually. |
---|
[608] | 436 | |
---|
[635] | 437 | <P><DT><B>Save</B><DD> |
---|
| 438 | This button causes the current flag settings to be saved in the |
---|
| 439 | <I>expnam</I>.DISAGL file. |
---|
| 440 | |
---|
| 441 | <P><DT><B>Export Tables</B><DD> |
---|
| 442 | This button creates a file with all |
---|
| 443 | bond distances and angles for the current phase, formatted in the |
---|
| 444 | arrangement used in the window below. Each entry is separated by a |
---|
| 445 | comma, suitable for reading into spreadsheet programs. |
---|
| 446 | |
---|
| 447 | <P><DT><B>Exit</B><DD> |
---|
| 448 | This button causes CIFselect to exit. If there are unsaved changes |
---|
| 449 | to publication flags, you will be given an opportunity to save or |
---|
| 450 | discard these changes. |
---|
| 451 | </DL> |
---|
| 452 | |
---|
| 453 | <P> |
---|
| 454 | The distance and angle display window is shown below. The |
---|
| 455 | items that are selected for publication are highlighted in yellow. |
---|
| 456 | <BR> |
---|
| 457 | <img src="cifsel2.gif" alt="View of CIFselect window" align="right"> |
---|
| 458 | <BR clear=all> |
---|
| 459 | |
---|
| 460 | |
---|
| 461 | |
---|
| 462 | |
---|
[608] | 463 | </BLOCKQUOTE> |
---|
[610] | 464 | <H3>Acknowledgments</H3> |
---|
[608] | 465 | <BLOCKQUOTE> |
---|
[610] | 466 | The GSAS2CIF program was written by Brian H. Toby, Robert B. Von Dreele and |
---|
[635] | 467 | Allen C. Larson. The distance/angle display format for CIFselect was |
---|
| 468 | suggested by Lachlan Cranswick, based on SHELX. |
---|
[610] | 469 | <P>Richard L. Harlow first got me interested in the problem of a |
---|
[608] | 470 | universal file format for powder diffraction data, leading eventually to |
---|
| 471 | my involvement with CIF and then this programming |
---|
| 472 | effort. For all this, I may someday forgive him. |
---|
| 473 | </BLOCKQUOTE> |
---|
| 474 | <P> |
---|
| 475 | |
---|
| 476 | <BLOCKQUOTE> |
---|
| 477 | <BLOCKQUOTE> |
---|
[635] | 478 | <hr noshade height=1> |
---|
| 479 | <B>Quote:</B><BR><a name="ps"> |
---|
| 480 | <CENTER> |
---|
| 481 | "A Rietveld refinement is never perfected, merely abandoned." |
---|
[608] | 482 | Peter Stephens</a> |
---|
[635] | 483 | </CENTER> |
---|
| 484 | <hr noshade height=1> |
---|
[608] | 485 | </BLOCKQUOTE> |
---|
| 486 | </BLOCKQUOTE> |
---|
| 487 | <P> |
---|
| 488 | <a name="CIFintro"> |
---|
| 489 | <H3>Appendix: A quick & incomplete introduction to CIF</H3> |
---|
| 490 | </a><BLOCKQUOTE> |
---|
| 491 | A CIF file consists of logical groups of information that are |
---|
| 492 | called data blocks, |
---|
| 493 | since each block is initiated by a label of form data_<I>label</I>. |
---|
| 494 | In the simple case, where a single crystallographic model is determined |
---|
| 495 | from a single diffraction dataset (histogram), the CIF can be a |
---|
| 496 | single block. In the case where either multiple datasets (histograms) |
---|
| 497 | or where multiple phases are used in the refinement, a CIF will |
---|
| 498 | require several data blocks to describe the data and results. |
---|
| 499 | <P> |
---|
| 500 | CIF consists of a series of tags, called data names, and values |
---|
| 501 | associated with these data names. Together the data name and value |
---|
| 502 | are called a data item. A separate document, the CIF (or pdCIF) |
---|
| 503 | dictionary defines the meaning of each data name. If a value does not |
---|
| 504 | contain any spaces, may be specifed without quotes, but either single or |
---|
| 505 | double quotes may be used to delimit strings. A data value of one ore more |
---|
| 506 | lines is quoted with semicolon characters (;). The two semicolons must be |
---|
| 507 | the first character on each line and the final semicolon is expected to be |
---|
| 508 | followed by a white-space character such as a space or then end-of-line. |
---|
| 509 | With the exception of semicolon delimiters, which must be the first |
---|
| 510 | character of a line to be recognized, CIF treats multiple spaces, blank |
---|
| 511 | lines and other "white-space" characters as a single space. |
---|
| 512 | <P> |
---|
| 513 | The following lines give examples of a few CIF data items. |
---|
| 514 | <BLOCKQUOTE> |
---|
| 515 | <BLOCKQUOTE> |
---|
| 516 | <PRE> |
---|
| 517 | _pd_calc_method 'Rietveld Refinement' |
---|
| 518 | |
---|
| 519 | _cell_volume 1811.00(5) |
---|
| 520 | |
---|
| 521 | _symmetry_space_group_name_H-M "I a 3 d" |
---|
| 522 | |
---|
| 523 | _pd_proc_ls_background_function |
---|
| 524 | ; GSAS Background function number 1 with 4 terms. |
---|
| 525 | Shifted Chebyshev function of 1st kind |
---|
| 526 | 1: 139.025 2: -11.5408 3: 9.75652 4: 3.90497 |
---|
| 527 | ; |
---|
| 528 | </PRE> |
---|
| 529 | </BLOCKQUOTE> |
---|
| 530 | </BLOCKQUOTE> |
---|
| 531 | CIF also allows multiple values to be associated with a CIF data item. |
---|
[610] | 532 | This is done by preceding the data name with the keyword loop_. If |
---|
[608] | 533 | two or more data names follow the loop_ keyword, a table can be |
---|
| 534 | constructed, as is shown in the following examples. |
---|
| 535 | |
---|
| 536 | <BLOCKQUOTE> |
---|
| 537 | <BLOCKQUOTE> |
---|
| 538 | <PRE> |
---|
| 539 | loop_ _symmetry_equiv_pos_as_xyz |
---|
| 540 | +x,+y,+z +z,+x,+y |
---|
| 541 | +y,+z,+x +x+1/2,+y,-z+1/2 |
---|
| 542 | |
---|
| 543 | |
---|
| 544 | loop_ |
---|
| 545 | _atom_site_label |
---|
| 546 | _atom_site_fract_x |
---|
| 547 | _atom_site_fract_y |
---|
| 548 | _atom_site_fract_z |
---|
| 549 | Y1 0.125 0.0 0.25 |
---|
| 550 | FE2 0.0 0.0 0.0 |
---|
| 551 | AL3 0.375 0.0 0.25 |
---|
| 552 | O4 -0.02946(5) 0.05385(5) 0.15068(6) |
---|
| 553 | </PRE> |
---|
| 554 | </BLOCKQUOTE> |
---|
| 555 | </BLOCKQUOTE> |
---|
| 556 | Finally, it should be pointed out that two values in CIF have special meanings. |
---|
| 557 | If a value is supplied as a single period (.), the meaning is the |
---|
| 558 | value is not defined or is inappropriate. If the value is a question mark |
---|
| 559 | (?), this means that the value is unknown or not specified. |
---|
| 560 | <P> |
---|
| 561 | For more information, see: |
---|
| 562 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.iucr.org/iucr-top/cif/"> |
---|
| 563 | The CIF home page</A>; short intros to |
---|
| 564 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.iucr.org/iucr-top/cif/powder-announce.html"> |
---|
| 565 | pdCIF</A> |
---|
| 566 | & |
---|
| 567 | <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.iucr.org/iucr-top/cif/powder-intro.html"> |
---|
| 568 | CIF syntax</A> |
---|
| 569 | |
---|
| 570 | <TABLE BORDER BGCOLOR="#FFFF40" ALIGN=RIGHT> |
---|
| 571 | <TR><TH><A Href="expgui.html">EXPGUI top</A> |
---|
| 572 | </TH><TH><A Href="excledt.html">Previous page</A> |
---|
| 573 | </TH></TR></TABLE><BR CLEAR=ALL> |
---|
| 574 | |
---|
| 575 | </BLOCKQUOTE> |
---|
| 576 | |
---|
| 577 | <P><font size=-1><A HREF="MAILTO:crystal@NIST.gov?subject=WWW page <?=$PHP_SELF?>">Comments, corrections or questions: crystal@NIST.gov</A></font><BR> |
---|
| 578 | <font size=-1><? lastmod(); ?></font> |
---|
| 579 | $Revision: 652 $ $Date: 2009-12-04 23:09:45 +0000 (Fri, 04 Dec 2009) $ |
---|
| 580 | </font> |
---|
| 581 | </BLOCKQUOTE> |
---|
| 582 | |
---|
| 583 | </BODY> |
---|
| 584 | </HTML> |
---|