PLOT85 for Windows
Version 4.4.2 January 14, 2003
Introduction
Plot85 is used to plot and analyze energy-dispersive diffraction data created by the SAM85
or MCA data collection programs. It can be used to determine the channel number, energy, or d-space
for any diffraction peak, either by pointing to the peak, or to fit it using GPLS. Reference data can
be imported in several file formats, described below: .HKL, .JCPDS, .POW. If the diffraction data is
from NaCl, the pressure and differential stress can also be calculated.
Plot85 for Windows is a port and upgrade of Plot85 for VMS. Its upgrades include the ability
to directly read APS data, read data created by multiple detectors (up to 4), and includes as
subroutines Celrf (a unit cell refinement program written by Charlie Prewitt) and XPOW (a program written by
Bob Downs and Kurt Bartelmehs which calculates powder-pattern data from crystallographic data).
To install and run PLOT85, see INSTALLATION, at the end of this document. The program
will run (with somewhat limited features) if you simply click on the PLOT85.EXE file.
When the program starts, it will look for an energy calibration file (DEFAULT.EDF) and a list
of hkls for some standards (STANDARD.HKL) in two locations. It will first look in the location
specified in the start in selection in the shortcut (see INSTALLATION). If it cannot find the file there, it
will look in another, arbitrary directory you may define using an environment variable.
Contents
Menus
File
Standards
XPOW 6
JCPDS 7
FLUORESCENCE 8
GPLS 9
CELRF 10
UTILITIES 11
Operations 12
Installation 13
Shortcut 14
Version History 15
Autocal 16
Menus

Many of the functions in the VAX version of Plot85 have been replaced or duplicated in
drop-down menus. They are listed below:
File

The FILE menu consists of several sub-menus, which give navigation panels. The
program remembers the last time any navigation panel was used, and uses the same location for the next one.
Therefore, any file unique to your experiment should be put in your data directory. The file
menu contains the options:
- Plot Data - used to plot the data after it has been read in using one of the options below
- Plot series of datafiles - not available right now
- Read datafile will read data files in the APS format, regardless of their extension. You will not be
given the option to save .pks files, although a temp.pks file will always be created and you can
manually copy it to the correct .pks file. Files with the .pks extension are ASCII files containing a list of
peaks found using one of several methods in the plot. They can be printed for reference, and are used
as input for the Celrf cell refinement option.
- Read datafile / save current pks file - This option will copy the current temp.pks file to a fname.pks
file before reading the new data file. The name of the .pks file (fname.pks) is a combination of the
first 5 characters plus the numeric extension (.00n) of the data file , and will only make sense if that
name is created correctly in the original STARTUP program.
- Save current pks file Saves the temp.pks file into fname.pkn where n is the detector number.
- Read HKL file - reads in a new STANDARD.HKL file (see next page)
- Read EDF file - reads in a new DEFAULT.EDF file. The DEFAULT.EDF file is a calibration
file created either manually or using AUTOCAL (see below). If you use this method for calibration,
you must reread the DEFAULT.EDF file after each data file is read.
- Read PKS file - Loads a PKS file from a previous PLOT85 session, for stress and/or pressure
calculation
- Import XY file - reads in an X-Y data file, where X is 2-theta
for CuKa1 radiation
- Import GSAS file - reads in an GSAS data file
- Read old MCA format file - same as Read datafile, above, except for SAM85-format data files
- Read old MCA + save pks - same as Read datafile / save current pks file, above, except for
SAM85-format data files
The program works best if the data are located in a directory that can be written to (i.e. is not
read-only). If you use a read-only directory, the program may crash (we are trying to eliminate that bug),
but should write the necessary files to the alternate directory defined in the environment (see
INSTALLATION).
The DEFAULT.EDF file contains (for each detector) four energy calibration parameters, 2-theta, and
a comment, each on separate lines.
- 0.150841654502074
- 7.152306844265865E-002
- -9.971762909913306E-007
- 2.373315680537658E-010
- 6.44668600000000
- MAY 18, 2001 E:\plot85test Detector
1
- 0.150841654502074
- 7.152306844265865E-002
- -9.971762909913306E-007
- 2.373315680537658E-010
- 6.44668600000000
- MAY 18, 2001 E:\plot85test Detector
2
- 0.150841654502074
- 7.152306844265865E-002
- -9.971762909913306E-007
- 2.373315680537658E-010
- 6.44668600000000
- MAY 18, 2001 E:\plot85test Detector
3
- 0.150841654502074
- 7.152306844265865E-002
- -9.971762909913306E-007
- 2.373315680537658E-010
- 6.44668600000000
- MAY 18, 2001 E:\plot85test Detector
4
STANDARDS

The STANDARDS menu lists the materials listed in the current STANDARD.HKL file.
The entry "No Standard" removes the current selection from memory, so it isn't plotted. The entry
"New Cell" allows you to enter new cell parameters (i.e. to simulate high temperature and/or pressure).
The new lines are calculated. Although all six cell parameters are displayed, only the ones required for
the current symmetry need be entered; e.g. for cubic, only a needs to be entered.
The entry "Set Cell Increment" allows you to change the unit cell parameters a, b, and c using
hot keys "I' and "i". Entering "I" with the graphics window active will increase any or all of a, b, and c
by one increment and redraw the plot', "i" will decrease it. Default values are .01 (1%)If you get
the message "incorrect data format", you probably used a STANDARD.HKL file without the commas
in the second line of one of the standards.
The format of the STANDARD.HKL file is described below:
- NaCl
- 5.6402,,,,,,1
- 1,1,1,3.26,13.,2
- 2,0,0,2.821,100.,1
- 2,2,0,1.994,55.,3
- 2,2,2,1.628,15.,2
- 4,2,0,1.261,11.,4
- 999,0,0,0,0
- MgO
- 4.231,,,,,,4
- 1,1,1,2.431,10.
- 2,0,0,2.106,100.
- 2,2,0,1.489,52.
- 3,1,1,1.216,4.
- 2,2,2,1.216,12.
- 4,0,0,1.0533,5.
- 999,0,0,0,0
- Al2O3
- 4.758,4.758,12.99,90.,90.,120.,0
- 0,1,2,3.4802,75.
- 1,0,4,2.55105,90.
- 1,1,0,2.3796,40.
- 1,1,3,2.0855,100.
- 0,2,4,1.7401,45.
- 1,1,6,1.6015,80.
- 1,2,4,1.4046,30.
- 0,3,0,1.3739,50.
- 1,0,10,1.2391,35.
- 1,1,9,1.2343,8.
- 2,2,0,1.1898,8.
- 2,2,3,1.1470,6.
- 3,2,1,1.1255,6.
- 2,0,10,1.0990,9.
- 999,0,0,0,0
- Co57
- 5.6402,,,,,,0
- 1,1,1,14.413,25.
- 2,0,0,122.0614,100.
- 2,2,0,136.4743,20.
- 2,2,1,6.4,30.
- 2,2,2,21.123,10.
- 4,2,0,23.859,5.
- 999,0,0,0,0
Each material has four types of entries: an identifying title, the cell parameters, a list of
diffraction lines, and a terminating line.
The first line is somewhat arbitrary, but all important information should be included in the
first 10 or so characters. It is displayed on the plot.
The second line consists of the six cell parameters, followed by a code for pressure measurement.
That code is 1 for NaCl, 4 for MgO, and 0 for anything else. Enough cell parameters must be
entered to define the cell. If the angles are left blank, a value of 90° is assumed. All entries must be
comma-separated, and have decimals.
The remaining lines consist of h, k, l, d, I, and O, where h, k, and l, are the Miller indices
(integer format), d is the d-space in angstroms, I is the intensity (100.0 being the maximum, decimal
notation), and O is an orientation parameter for stress calculation. This line of data can also be used for
non-diffraction lines (such as gamma or fluorescence lines) by entering the energy in KeV in place of d.
If that number is greater than 10, it is assumed to be an energy. See the 4th entry, Co57. "Dummy"
h,k,l s must be entered.
The list is ended with a dummy diffraction line, with 999 as h.
The maximum number of lines is 20; the first ten are identified by the single numeric key 1-0;
the next ten are the same keys, shifted: ! through ).
If you get a message stating that the STANDARD.HKL file may be incorrect, the most
likely reason is that the individual cell parameters are not in the correct format.
Pressure Measurements using the Decker EOS for NaCl can only be done if NaCl is loaded as
the standard in the above menu.
XPOW

The XPOW menu allows you to create a theoretical powder pattern from a .POW file. This
should be used to display your sample data instead of the STANDARD.HKL file. It uses a modification of
the XPOW program, written by Bob Downs and Kurt Bartelmehs. For reference, see Downs et al.
(1993) American Mineralogist 78, 1104-1107. You will have to get a .POW file. Get the XPOW
program from http://www.geo.arizona.edu/xtal/group/index.php3?page=software and download the
executable and sample datafiles for XpowWin. The .POW files are the sample data files. To modify them,
you will need to know the cell parameters, the space group, and all the positional and occupancy
parameters for the structure. Put your selected and/or modified .POW file in your data directory. The
XPOW menu has selections:
- Read File (this must be done first).
- Print - prints on the screen a list of h,k,l, and d for up to 40 strongest lines
- New Cell - same as New Cell in the Standards menu
- Set Cell Increment _ same as Standards menu
- Plot lines - adds the new reference lines to the current plot
One acceptable format for the .POW file is shown below:
- corundum: standard at U of Arizona
- Mo 0 50
- 4.7608 4.76089 12.9957 90 90 120
R-3c
- Al 0 0 .355
- O .306 0 .25
- stop
- corundum: Zachariasen: (1928) Skrifter
Utgitt Av Det Norse Videnskaps-Akademi
- Mo 0 70
- 4.759 4.759 12.991 90 90 120 R-3c
- Al 0 0 .355
- O .306 0 .25
One .POW file may have more than one entry, but only the first will be used. An entry consists
of a title, radiation information (ignored, but must be present), the 6 cell parameters and the
space-group, and one line per atom with the chemical symbol and the fractional position of that atom listed.
JCPDS

The JCPDS menu allows you to input a reference file in the APS .JCPDS format. The menu
has selections:
- Read
- Print - prints on the screen the portions of the selected JCPDS file used by this program.
- New Cell - same as New Cell in the Standards menu
- Set Cell Increment _ Same as Standards menu
- Plot lines - adds the new reference lines to the current plot
Two formats of the JCPDS file can be used; the current (version 4) format is be shown
below (note: version 4 refers to JCPDS file version, not PLOT85 version):
- VERSION: 4
- COMMENT: Alumina (JCPDS 0-173, EOS
n/a)
- K0: 194.000
- K0P: 5.000
- SYMMETRY: HEXAGONAL
- A: 4.758
- B: 0.0000
- C: 12.99
- ALPHA: 0.0000
- BETA: 0.0000
- GAMMA: 0.0000
- VOLUME: 22.0640
- ALPHAT: 2.000e-6
- DIHKL: 3.4790 75.0 0 1 2
- DIHKL: 2.5520 90.0 1 0 4
- DIHKL: 2.3790 40.0 1 1 0
- DIHKL: 2.0850 100.0 1 1 3
- DIHKL: 1.7400 45.0 0 2 4
- DIHKL: 1.6010 80.0
1 1 6
- DIHKL: 1.4040 30.0 2 1 4
- DIHKL: 1.3740 50.0 3 0 0
- DIHKL: 1.2390 16.0 1 0 10
For JCPDS version 4 files, each line begins with a keyword.
Several entries are ignored by PLOT85, including all equation of state parameters (Ko, KoP, etc.).
As in the STANDARD.HKL and XPOW files, each diffraction line is identified on the plot with
a single symbol. They are:
Lines 1-10:
1 2 3 4 5 6 7 8 9 0
Lines 11-20 (shifted versions of 1-10):
! @ # $ % ^ & * ( )
XPOW and JCPDS formats allow 20 additional lines:
Lines 21-30:
- = \ [ ] ; ' , . /
Lines 31-40 (shifted versions of 21-30):
_ + | { } : " < > ?
FLUORESCENCE

The Fluorescence menu allows you to display the 4 strongest K X-ray fluorescence lines from
any element. The menu has selections: The last 5 elements selected will be added to the menu list for
easy recall.
- List elements
- Add element
- Plot lines - adds the new reference lines to the current plot
- A preselected list of 6 elements
- Up to 4 newly added elements
If you add an element, that element will be added to the bottom of the list. When 4 new
elements have been added, the 5th replaces the first of the newly added element list. Those on the preselected
list remain unchanged.
If you want to display another line, select another element and re-plot it. If you press S or s
before you replot the fluorescence lines, the old ones will be removed before the new ones are plotted. If
you don't, the new ones will be added.
GPLS

GPLS
The GPLS General Setup menu controls various parameters in the General Program
for Least Squares fitting routines. The Auto Peakfit Setup menu makes use of
the multiple data set fitting routines which use GPLS. Run Auto Peakfit is used
after the previous two setup menus.
In the GPLS setup menu, most of the defaults will remain unchanged. However,
if you wish to fit more than one peak at once, then you need to select that
number, and probably select "Individual Peak Widths" (otherwise, all
peaks will have the same width in channels). Print last cycle only refers to
the amount of information which appears on the text screen.
To use GPLS in manual mode, follow the following procedure:
- Bracket a region of the plot with two dots or periods, then the slash (/)
to expand that region into GPLS (pressing a third dot simply expands that
region). In either case, plot will be replaced with the expanded version.
If a reference standard has been selected (using the Standards, the JCPDS,
or the XPOW menu), the peak identification will be displayed.
- You will now be asked to select the smaller region to be used for the peak
fit. This region must contain the number of peaks selected in the GPLS Setup
menu (you may change that now if you wish).
- Move the cursor to the left side of the peak to be fit, and press the space
bar (make sure the PGPLOT Graphics Window, #1 is active).
- Then move the cursor to the right-hand side of the peak and press the space
bar again. You will now be asked to move the cursor to peak 1 (the only peak
if you are fitting only one).
- Move the cursor to the center, top of that peak and press the key corresponding
to the label on the peak (typically a single-digit number). If you selected
more than one peak in the GPLS setup, you will be asked to select peak 2,
etc. When you have selected all the peaks, the text screen will display the
progress of the fitting until it is finished, give the results, and ask if
you want to refit the same region. Usually you will answer "no".
- You will be returned to step 2 and the screen selected in step 1 and asked
to select the left edge of the next peak. If you have no more peaks to fit,
enter "X" to exit.
- The text screen will tell you that you are finished, and to use a pull-down
menu for the next step. The next step could be to exit Plot85, or to read
another data file.
If the peak you wish to fit is overlapped with another, or is a doublet, change
the number of peaks in the setup to include all peaks visable. In step 5, select
the first peak (left-hand most peak). If it is a standard peak with a number,
enter that number; if it is unidentified, press the space bar. You will be asked
to repeat this procedure until the number of peaks you said you wanted to fit
in the GPLS setup window have been done.
GPLS Auto Mode. Auto mode allows you to create a template based on one file.
It then uses the information in that template as a starting point for subsequent
files. The selection of data files to process can be based on a sequence, in
which the first and last file are selected, or list file, which is a fill which
contains a list of data files to process. Obviously, you must use a list file
if your data files alternate between NaCl and sample, for example. Another choice
which must be made is based on whether the position of the peaks are changing
from file to file (as when pressure and/or temperature are changing), or the
positions are remaining more or less constant, as in stress relaxation experiments.
If the positions are constant, then the template file should be static; otherwise
it should be updated after each fit.
GPLS Auto mode setup. The procedure is as follows:
- Select Detector - determines which detector to use when processing multi-element-detector
data.
- Check Set Select Peaks flag box - Whenever this check box is selected the
peaks selected when running GPLS with be saved in a file for future auto processing.
If processing detector 2 of file abc05.021, the file abc05.template2 will
be created.
- Select files to processCheck Select/Use file sequence - processes all the
files between the first and last file. or check Create list file box - creates
a file called abc05.list which is a list of files to be processed.Use list
file - uses that list file
- Run GPLS in manual mode on the first file
- Check the options in the boxes on the right-hand side of the GPLS Auto
Setup window.
- Update peak positions - fitted position of one file used as input for
next file; otherwise input positions remain fixed.Check this box if changing
pressure and/or temperature
- Shift to maximum point if delta is greater than the peakwidth - If the
change in pressure and/or temperature causes the peak shift from the previous
file to be greater than its own width, GPLS won't be able to find it. If
this box is checked, the program will search for the highest peak inside
the previous region and then redefine the region so that the highest peak
is in the center. Only works with single-peak regions.
- Pause between fitted region and Pause between files - affects display
during execution
- Overwrite pk files without prompting _ If a pk files already exits, rewrite
the file without confirmation from the user.
- Link to Celrf - If this box is checked, then Celrf will be run simultaneously
with GPLS. If you plan to use this option, be sure to run the Celrf Setup
first (see next section)
- Output to fitted regions file - creates a single file for each peak with
all input data files included. If the fitting was done for multiple peaks
in a single region, then each peak is identified separately.
6. Run Auto Peakfit in initial menu. In the following example, if the file
abc02.template2 has been previously created, after each file is processe, peak
files abc02nnn.pk2 to abc02mmm.pk2 will be created and Fitted
Regions files abc02nnn_mmm.d2r1, etc will be created.
CELRF

The CELRF menu allows you to run Celrf after you have created a pks file. It has
selections:
- Setup (this must be done first, see window below). You need to know the
cell parameters of the starting model. Program knows which parameters need
to be selected based on symmetry; i.e. for cubic materials, only
set a, Cubic, and refine a. A typical number of cycles of
refinement is 5.
- Refine
- Print list file
- Edit lst file
- Edit input file
UTILITIES

The UTILITIES menu includes
- Export to GSAS - can be used for conversion to 2-theta, or export EDS GSAS
file
- Export to Jones
- Export as XY
- Set wavelength
- Clear EDF data - use this if the calibration data source was wrong and you
wish to re-read it (using the file menu)
- Display EDF data - displays calibration data currently loaded
- Display Data - text list of data
- Color Postscript - changes printer postscript to color (default)
- Monochrome Postscript - changes printer postscript to monochrome. Change
only takes effect when you read a new file, or re-read the old one.
- Enter default title 1 - This allows you to enter text to appear on the top
line of the graph. It will remain for all future graphs, unless you either
reset it (see below) or restart Plot85. If you have entered something in "Sample
title" or "Experiment title", this will be used (although it
can be changed). If there is no title 1 in the file, you must enter something
here. This new default title is not saved in the file.
- Reset default title 1 - deletes the current Title 1 so you can enter a new
one.
- Enter new title 1 - creates a new Title 1 for the current plot only.
- Enter new title 2 - creates a new Title 2 for the current plot only. If
nothing was entered in the first "Experiment Comments" field in
the MCA program, this must be entered for each graph (since they will all
be different). If you have entered something in one or more of the "Experiment
Comments" fields, they will be concatenated together (up to 80 characters)
and used as Title 2.
The rest of the menus (EDIT, VIEW, STATE, WINDOW, and HELP) are standard Windows
menus, and won't be described here.
Operations

Once data is plotted the cursor works as follows:
- 1. The selection commands "..." and "../" will expand the range pointed to by the first two dots.
A third dot will expand the displayed, while the / will invoke GPLS.2. If a standard has been
selected the number and shifted number keys point to the corresponding standard line.
- 3. P or p will produce a postscript file of the current graphics screen. Filename is the filename of
the data file with the extension ".ps". If you properly set up the printer environment as described
below, that file will then be copied to the printer.4. N or n will read the next data file in the sequence.
- 5. Q or q will quit and return to the menu.
- 6. S will redisplay the original data, and s will redisplay the current data selection. Position
and XPOW markers will be lost. Standard markers will be retained.
- 7. Function keys F1 through F4 will select the 2k regions 0-2047, 2048-4095, 4096-6144 and
6145-8196 respectively detectors 1-4 respectively. Calibration of each detector is maintained.
- 8. "I" and "i" will increment or decrement the cell edges of the active reference material (using
the Standard, Xpow, or Jcpds menus), recalculate the d-spacing and replot the data. The active
reference material is the last one to have the increment values changed or the last one to be plotted with
the drop-down menu.
You may have up to 4 sets of reference lines plotted simultaneously (Standard.hkl, Xpow,
Jcpds, and Fluorescence). Lines from the STANDARD.HKL file are refreshed by refreshing the screen
with S or s; the others are refreshed using the plot lines item in their respective drop-down menu.
Some comments regarding PLOT85 when used with 4 detectors. These comments apply to
files created by MCA-Genie. MCA-Epics uses a different multi-detector format which we have not
yet accommodated in Plot85.
- 1. The only format that contains 4-detector information is the default APS format created by
Mark's MCA program. This format has 8k (8192) channels. This format has 4 entries for each
detector-related parameter (calibration, ROIs, data) in each line which formerly contained only one entry.
- 2. There is only one calibration parameter set built into that file; if it is correct at all, it is only
correct for the first detector. This is no longer true; each detector has its one calibration data, and these
are correctly selected whenever you switch detectors.
- 3. When you open an APS format file, select "all files", then one of the "001" extension.
MCA-Epics files hage the header invormation already already in the file. If there is no header information,
Plot85 will read the corresponding HDR file to get the titles. This is left over from 1999.
- 4. When all 4 detectors are displayed (in one graph), pressing F1, F2, F3, or F4 will select
detectors 1-4 respectively. "S" will re-display the whole spectrum; "s" will re-display the portion you
currently have selected. This ("S") must be done before selecting another detector.
- 5. Each detector spectrum displays a "reduced" channel number, i.e. a multiple of 2048 is
subtracted from each channel number to reduce it to the range 0-2047.6. The "standard" which is used
may be selected using a drop-down menu; if you use the menu and then enter "s", your spectrum will
be re-drawn with the new standard lines.
-
Notes:
Title 1 is whatever is typed in the "Experiment Title" field of the Experiment Information
MEDM windowTitle 2 is a concatenation of whatever is typed in the "Experiment Comment" fields (all
of them) of the Experiment Information MEDM window.The title of standard is from the
STANDARD.HKL file
The energy calibration and 2-theta terms are from the calibration, either the data file or
the DEFAULT.EDF file. They will change if you select a different detector number.
Installation
These instructions primarily apply to use at Stony Brook; other users need to make
appropriate modifications.
1. Create a directory on C: (or wherever else you wish) called PLOT85. To install the
program locally, copy the contents of the CD to that directory. To run PLOT85 off the network, for
example, map drive X: to the folder where the executable is located. You could also map Z: to your area on
a server.
Although the program will run without defining environment variables, it works better if you do.
How to set environment variables depends on you operating system, but for most, go to control
panel/system/advanced/environment. If given a choice, use the system setting, not the user setting. If
you want to check your settings, go to a command (or DOS) prompt, and enter "set", and all the
environment settings will be displayed.
- 1. Pgplot_font is a variable pointing to the location of the grfont.dat file. Without this file, text
will not be shown on the plot. (e.g. pgplot_font=c:\plot85\grfont.dat)
- 2. Plot85_HD is a variable pointing to the default PostScript printer. If it is a network printer, set
this equal to the share name (e.g. plot85_hd= \\SBMP90\HPLJ4Si_121)
- 3. File_path is the location of a writable directory where the program will put files, if it cannot
write them to the data directory. (e.g. file_path=c:\windows\temp)
Shortcut
Create a shortcut to plot85.exe. You should modify the properties of the shortcut, such as "start
in" location or "run" type.
There are four shortcut options you can enter in the Target line, after the name of the .exe file:
They are: "printer =", "gpls = ", "cycles =", and "screen =". These are case-sensitive. You may use
any or all of the options.
The "printer" option overrides the one created as an environment variable. It is especially
useful if you want to set a default printer using the environment setting, and temporarily change it.
The "gpls" option controls the GPLS menu. Its arguments can be "yes", "no", or "1". "Yes"
gives you all GPLS options, "no" gives a minimum of GPLS options, but allows you to select the number
of peaks to be fit, and "1" restricts the number of peaks to 1. The default is "no". The "cycles" option
will fix the number of gpls cycles to the number entered.
The "screen" option sets the default screen resolution. "?" gives the following list,
/W9 (Windows95, mode from environment)
/WV (Windows95, 640x480)
/WS (Windows95, 800x600)
/WX (Windows95, 1024x768)
/WZ (Windows95, 1280x1024)
Therefore, if you want to use the printer in room 121, one peak for GPLS, and a
1280x1024 screen, enter
C:\plot85\plot85.exe "printer=\\SBMP90\HPLJ4Si_121" "gpls=1" "screen=/WZ"
Examples:
"printer=\\SBMP90\HPLJ4Si_121" prints to a network printer
"printer=LPT1" prints to a local printer
"gpls=yes" enables all options
"gpls=no" enables a minimum of options
(default), but with an unlimited number of peaks
"gpls=1" same as "no", but restricting the number of peaks to 1
"cycles=1" sets the number of Least Squares cycles in GPLS to 1
"screen=/W9" graphics mode from environment
"screen=/WV" VGA (640 x 480) graphics mode
"screen=/WS" SVGA (800 x 600) graphics mode
"screen=/WX" XGA (1024 x 768) graphics mode
"screen=/WZ" SXGA (1280 x 1024) graphics mode
Note: "gpls" and "cycles" can be overridden in the GPLS drop-down menu. The numbers
you enter here will become the default in the menus.
"Printer" can override the default printer defined in the environment
Version History
- Version 1.0 - original version, written for VMS running on a VAX or an ALPHA
- Version 2.0 - beta version for Windows
- Version 3.0 - added support for .JCPDS reference files
- Version 3.1 - added Celrf
- Version 3.2 -
- Version 3.3 - Moved fluorescence reference to be an internal function using
the FLUORESCENCE menu; added GPLS and XPOW menus
- Version 3.4.0 - Made it possible to increment cell parameters for reference
lines input from .HKL, .JCPDS, or .POW files.
- Version 3.4.1
- Version 3.4.2 - changed look of File menu, and moved import of .MCA files
to the Utilities menu. (.MCA file inport moved back to the file menu in version
4.1.0)
- Version 3.4.3 - Increased the number of lines in a .JCPDS file from 20 to
40, but introduced a bug.
- Version 3.4.4 - corrected the bug introduced in 3.4.3
- Version 4.0.4 - added GUI functionality for default titles, new cell parameters,
GPLS setup, CELrf setup
- Version 4.0.5 _ fixed some minor bugs related to GSAS export.Version 4.0.6
- correct FWHM data in .PKS files
- Version 4.0.6a - Added check mark next to selected standard
- Version 4.1.0 - Added support for 4-detector version of APS-format files
- Version 4.1.1 - corrected problem keeping calibration parameters and detector
selection coordinated
- Version 4.1.2 - changed .PKS file extension to .PKn where n is the
detector number.
- Version 4.1.3 - changed how cycles and QS are handled in Celf; moodified
export to GSAS for MED files
- Version 4.1.4 - added refinement of 2theta-zero in Celrf
- Version 4.1.5 - replaced some text dialog with GUIs
- Version 4.1.6 - warns user if temp.pks file is about to be overwritten;
changed cell increments to percentages; fixed a bug so the .pkn files to to
the data directory.
- Version 4.1.7 - increased the maximum number of peaks in XPOW from
20 to 40; added symbols for XPOW and .JCPDS files lines 21-40; fixed a bug
in the 4th energy calibration parameter.
- Version 4.2.0 - Added "auto" mode to GPLS. Define peaks and then
run a series of files.
- Version 4.2.1 - Added updating of starting peak positions in GPLS auto mode.
Added option to print only the last cycle in GPLS
- Version 4.2.2 - Added option to read a list of files for "auto processing"
in GPLS
- Version 4.2.3 - Fixed bug in celrf. Not selecting a pks file caused endless
loop. Added switch "icellexit" (write list file and exit after refinement)
- Version 4.3.0 - Added link to Celrf from GPLS auto mode
- Version 4.3.1 - Added "Region specific" output files for GPLS
auto mode - One file for each region fitted with one entry per file processed
- Version 4.3.3 - Added ability to search for highest peak within GPLS auto
mode
- Version 4.4.2 - Added option to output native GSAS EDS file (27-Dec-02)
- Version 4.4.2a - Fixed bug in spawning copy command for pks file (NT doesn't
support -Y option)
- Version 4.4.3 - Increased data size to a maximum of 4096 points (channels)
- Version 4.4.3b - Fixed bugs: conversion to gsas file (problem with quad
term) Non-standard name would crash program. no crash but but still get funky
name (problems: no ext and filename less than 5 characters)
- Version 5.0.0 - Add peak search routine POW by Wayne Dollase (includes
background subtract, alpha 2 stripping (for sealed tube source), second derivative
peak search, and "peak matching" with peaks from 'standards', 'xpow',
and jcpds. A peaks file compatible with celrf is produced
- Version 5.1.0 - Added option to read PDF2 "output" from Brian
Toby's program PC Logic
- Version 5.1.1 - Added conversion of scintag data to xy
Autocal
Autocal is a DOS program that creates a calibration file, called DEFAULT.EDF. It takes a
series of known diffraction and fluorescence peaks, and does a cubic fit for energy-to-channel number,
along with 2?, in one step. The input is from a file called STANDARD.EDF, which is described below.
Autocal6 is used for one detector, and Autocal7 is used for a 4-element detector array.
Installation of Autocal
Copy Autocal6 and Autocal7 to the came location as Plot85. If you create a new shortcut, you
may want to modify its properties like "start in" location or "run" type. You will need to modify Start in:
to be the location of your data EDF files. I recommend you put them in your data directory, because
they will be different for each data set.
Currently, there are two versions of Autocal: Autocal6 is most similar to the version on the VAX.
Autocal7 has been modified to handle 4 detectors. They use DIFFERENT FORMATS for
the STANDARD.EDF and DEFAULT.EDF files, so don't mix them. It is probably best to use
only AUTOCAL7 even if you are using only one detector.
The STANDARD.EDF file is the input file for Autocal. Versions for 1- and 4-detectors are
shown below. The file consists of a list of "diffraction" lines from the data file. For each line, there is
the channel number, d or E, and an identifying label. E is the energy of the line, in KeV, and d is the
d-spacing, in Ångstroms. The program assumes that if the number is less than 10, it represents d, and
if it is greater than 10, it represents energy. The line may be a real diffraction line, an X-ray
fluorescence line, or the energy of a gamma ray.
An example of the STANDARD.EDF file for Autocal6 is shown below:
- 30
- -582.61, 31.817,'----Ba Ka2-----
'
- -588.67, 32.194,'----Ba Ka1-----
'
- 665.01, 36.376,'----Ba Kb1-----
'
- 681.08, 37.255,'----Ba Kb2-----
'
- -455.93, 24.9424,'----Ag Kb1-----
'
- -1619.27, 88.04, '----Cd109-----
'
- 533.90, 3.4790,'Al2O3 (0-1-2)
'
- -546.08, 3.1355,'Silicon (1-1-1)
'
- 729.78, 2.5520,'Al2O3 (1-0-4)
'
- 765.70, 2.431 ,'MgO (1-1-1)
'
- 782.60, 2.379 ,'Al2O3 (1-1-0)
'
- -814.16, 2.106 ,'MgO (2-0-0) '
- -893.64, 2.085 ,'Al2O3 (1-1-3) '
- -894.16, 1.9201,'Silicon (2-2-0)
'
- 1072.00, 1.740, 'al2o3 (0-2-4) '
- -1048.91, 1.6375,'Silicon (3-1-1)
'
- 1164.84, 1.601, 'Al2O3 (1-1-6) '
- -1132.92, 1.514, 'Al2O3 (1-2-2)
'
- -1252.93, 1.489, 'MgO (2-2-0) '
- -1328.71, 1.404, 'Al2O3 (2-1-4)
'
- 1358.50, 1.374, 'Al2O3 (3-0-0) '
- -1413.72, 1.337, 'Al2O3 (1-2-5)
'
- -1509.42, 1.239, 'Al2O3 (1-0-10)
'
- -1649.13, 1.0426, 'Al2O3 (2-2-6)
'
- -1723.68, 0.9976, 'AL2O3 (2-1-10)
'
- 1336.27, 72.804,'---- Pb Ka2
----'
- 1376.14, 74.969,'---- Pb Ka1
----'
- -1556.90, 84.450,'---- Pb Kb3 ----'
- -1565.83, 84.936,'---- Pb Kb1 ----'
- -1610.38, 87.364,'---- Pb Kb2 ----'
- -604.78, 33.033,'---- La Ka2 ----'
- -612.45, 33.440,'---- La Ka1 ----'
- -692.54, 37.799,'---- La Kb1 ----'
- -710.89, 38.728,'---- La Kb2 ----'
- -525.76, 3.258, 'NACL (1-1-1)'
- -606.55, 2.821, 'NaCl (2-0-0)'
- -859.96, 1.994, 'NaCl (2-2-0)'
- -1055.36, 1.628, 'NaCl (2-2-2)'
- -1362.31, 1.261, 'NaCl (4-2-2)'
The file for Autocal7 is similar in concept except that the order of the variables has been
altered, and there are 4 sets of channel numbers, one for each detector. The channel number for each
detector can be the "real" one, or the "reduced" one; the program will convert it. Thus, you can use
channel number from either PLOT85 (see below), or from the MCA program. If the channel number is
negative, that point will be ignored.
- 30
- LABEL ENERGY OR D DET1 DET2 DET3
DET4
- 'Co57 G1', 14.413, 199.85, 199.85,
199.85, 199.85
- 'Co57 G2', 122.0614, 1729.09, 1729.09,
1729.09, 1729.09
- 'Co57 G3', 136.4743, 1934.10, 1934.10,
1934.10, 1934.10
- 'NACL (1-1-1)', 3.258, 473.98, 473.98,
473.98, 473.98
- 'NaCl (2-0-0)', 2.821, 548.01, 548.01,
548.01, 548.01
- 'NaCl (2-2-0)', 1.994, 777.86, 777.86,
777.86, 777.86
- 'NaCl (2-2-2)', 1.628, 954.24, 954.24,
954.24, 954.24
- 'NaCl (4-2-2)', 1.261, 1235.49,
1235.49, 1235.49, 1235.49
For both versions, if the channel number is entered as negative, the program will take its
absolute value for analysis, but it won't include it in the fit. That way you can "turn off" a suspect line
without having to delete it. For Autocal7, that negative sign could be placed in the "Energy or D column, if
you want to ignore the entire line, or in one or more of the DET columns, if you want to turn off
the calculation for some detectors, but not all.
When you run the program, the output calibration file, called DEFAULT.EDF will
be created. The 1 detector version consists of the four energy calibration parameters,
2-theta, and a comment, each on a separate line. The format of the 4-detector
version is simply the old one times 4, resulting in 24 lines.
Each detector must be calibrated separately. Each time the program is run, you are asked
for which detector you want to calibrate (1, 2, 3, or 4). When the program is run the first time,
the DEFAULT.EDF file written will have the same values for all four detectors. When you run it
the second time, the old file is read in, the values for the detector you select is modified, and the file
is resaved.
Each time you run the program, two files are created: STANDARD.OUT and STANDARD.ERR.
These give information about the resulting fit; STANDARD.ERR gives information for all the lines
in the DEFAULT.EDF file, even those with negative signs (although these are still not included in the fit).
When you run the program the second (or greater) time, these files may be overwritten, so you are
given a chance to rename them before you overwrite them. Normally, you will answer "Y" to continue
and overwrite these files.