The first three files, (readexp.tcl, gsascmds.tcl, gsasmenu.tcl) must be located in the same directory where the expgui file is found. The localconfig file also is read from this directory, if it exists. The final file, .gsas_config, is read from the user's login directory (UNIX) or C:\ (Windows). No error occurs if either localconfig or .gsas_config is not present.
The readexp.tcl and gsascmds.tcl files contain tcl procedures that are used for more than one application, so it is convenient to place them in separate files. They are only of interest to someone trying to debug or add new functionality to expgui.
The gsasmenu.tcl file defines the contents of the menu bar, the contents of the button bar and definitions for each command. The contents of this file are designed to be modified and extended by users, either by editing the file, or by overridding definitions in the localconfig or .gsas_config files. The variables in the gsasmenu.tcl are:
expgui_cmdlist(powpref) {{runGSASwEXP $cmd} {Powder data preparation}}means that "runGSASwEXP powpref" will be invoked when powpref is invoked. . For example, when powpref is selected, the tcl command "runGSASwEXP $cmd" is invoked, where variable cmd is set to "powpref".
set expgui(buttonlist) {expnam expedt genles ortep fourier forsrh forplot lstview}is placed in the localconfig or .gsas_config files this will redefine the contents of the button bar.
setenv GSASBACKSPACE 0in your ~/.cshrc file or include
set env(GSASBACKSPACE) 0in your ~/.gsas_config or localconfig file.
If you have CMPR installed on your computer, you can use superimpose on liveplot the peaks for an arbitrary unit cell with space group extinctions show, if desired. This is pretty neat! To enable this feature, you must have a version of the GSAS GUI routines downloaded after 4 May 1998 and have installed a version of CMPR downloaded after 4 May 1998 (see the CMPR installation instructions.) Then create a link from in the GSAS GUI directory to file cellgen.tcl in the CMPR directory. For example:
ln -s /usr/local/cmpr/cellgen.tcl /usr/local/gsas/tcl/cellgen.tcl
If you have LOGIC installed on your computer, you can use superimpose peaks for a entry from the ICDD/JCPDS database on a pattern in LIVEPLOT. This is also pretty neat! To enable this feature, you must have a version of the GSAS GUI routines downloaded after 4 May 1998 and have installed a version of LOGIC downloaded after 4 May 1998 (see the LOGIC installation instructions.) Then create a link from in the GSAS GUI directory to file icddcmd.tcl in the LOGIC directory. For example:
ln -s /usr/local/powdersuite/icddcmd.tcl /usr/local/gsas/tcl/icddcmd.tcl
Creating such a file is easy. To add a entry define the following five array elements using a single, unique element name and then append that element name to variable datalist. Define
set UVWP(Ge15) {398.5 -343.2 163.0 0} set XY(Ge15) {0 0} set wave(Ge15) 2.0775 set lblarr(Ge15) "BT-1 Ge(311) 15'" set ttrange(Ge15) "5 160" lappend datalist Ge15Array element UVWP(item) contains the (Gaussian) GU, GV, GW and GP values, while XY(item) contains the (Lorentzian) LX and Ly terms. Array element wave(item) contains a wavelength, array element lblarr(item) contains the text to be shown on the "Plot Contents" menu and ttrange(item) defines the range the function is valid.
Note that this script will probably need some work to be used with TOF diffraction.
The GUI is written by Brian H. Toby of the NIST Center for Neutron Research, Brian.Toby@NIST.GOV.
GSAS is Copyright, 1984-1997, The Regents of the University of California. The GSAS software was produced under a U.S. Government contract (W-7405-ENG-36) by the Los Alamos National Laboratory, which is operated by the University of California for the U.S. Department of Energy. The U.S. Government is licensed to use, reproduce, and distribute this software. Permission is granted to the public to copy and use this software without charge, provided that this notice and any statement of authorship are reproduced on all copies. Neither the Government nor the University makes any warranty, express or implied, or assumes any liability or responsibility for the use of this software.
The GUI is not subject to copyright. Have fun.
Brian Toby (Brian.Toby@NIST.GOV)
$Revision: 36 $ $Date: 2009-12-04 22:59:18 +0000 (Fri, 04 Dec 2009) $