Plot85 A program to plot and analyze energy-dispersive diffraction data Written by Kenneth Baldwin, with contributions from: Donald Weidner (stress calculations) Kurt Leinenweber (implementation of the Decker EoS) Wayne Dollase (peak search) Robert Downs and Kurt Bartelmehs (Xpow) Charlie Prewitt (Celrf) David Cox, Warren Hamilton, Larry Finger and others (GPLS)
What can Plot85 do? Graphically display energy-dispersive diffraction data for multiple detectors and different 2 q s Fit peaks using least-squares (GPLS) Calibrate such data using known diffraction, fluorescence, and radioactive source information Measure stress/strain present in the data Adjust reference data for pressure and/or temperature Do all these things fairly easily All of these things could also be done manually, using multiple programs such as PeakFit, Excel, but here there are all done in one package.
Basic Operating Parameters Written in Fortran, compiled to run under Windows (any recent version including Vista) Reads ASCII files in several formats: – Native MED format from NSLS or APS sources – MCA format defined at NSLS – X-Y data – Scintag text file – GSAS format – Spring8 format Each of these formats has one channel of data per line, with (optional) headers The MED (multi-element detector) format has as many data points per line as there are detector elements.
Typical Format for MED and APS Files the only difference is the format of the file specification – the extension of APS files is.nnn, (the file sequence number) while that for MED files is.MED, (the file sequence number is in the filename). Parameters listed in Green are read in by Plot85 and used for some calculations. VERSION: 3.1 version number for the MED data collection software (EPICS) ELEMENTS: 4 number of detector elements DATE: FEB 10, :31: CHANNELS: 2048 ROIS: number of Regions of Interest for each detector REAL_TIME: data collection time LIVE_TIME: data collection time CAL_OFFSET: e e e e-002 } CAL_SLOPE: e e e e-002 } energy calibration parameters CAL_QUAD: e e e e-008 } TWO_THETA: ROI_0_LEFT: ROI_0_RIGHT: ROI_0_LABEL: wad240 & wad240 & wad240 & wad240 & ENVIRONMENT: X17B2:OperatorName.VAL="E6351 Y8040 E6351 U7703 J7501 U7659" ( ) ENVIRONMENT: X17B2:SampleName.VAL="hot-pressed MgO" ( ) ENVIRONMENT: X17B2:ExperimentComment1.VAL=" " ( ) ENVIRONMENT: X17B2:ExperimentComment2.VAL=" " ( ) ENVIRONMENT: X17B2:ExperimentComment3.VAL=" " ( ) ENVIRONMENT: X17B2:ExperimentComment4.VAL="MgO" ( ) ENVIRONMENT: X17B2:ExperimentComment5.VAL="MgO" ( ) ENVIRONMENT: X17B2:LVP_furnace_calcs.G="-0.000" (main pump pressure Keithley channel 9 Heise gauge) ENVIRONMENT: X17B2:LVP_tc1_calcs.I=" " (Thermocouple1 Temperature) ENVIRONMENT: X17B2:LVP_furnace_calcs.D="0.002" (Heater power) many more ENVIRONMENT:X17B2 variables DATA: number of counts in channel 0 for each of the four detectors number of counts in channel 1 for each of the four detectors number of counts in channel 2 for each of the four detectors Continues for a total of 2048 channels of data
Reference Files (“Standards” Files) Accessory files and information can be included in the plots. These include: Standard.hkl *.jcpds *.pow X-ray fluorescence (built in)
Standard.hkl A list of up to 40 diffraction standards, with up to 20 lines each NaCl name of standard, any text up to 20 characters long ,,,,,,1 unit cell dimensions, plus a sample identifier (sample identifier non-zero for NaCl and MgO only) 1,1,1,3.26,13.,2 h, k,l, d, intensity, peak orientation identifier, for 1st peak 2,0,0,2.821,100.,1 h, k,l, d, intensity, peak orientation identifier, for 2nd peak 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 terminating line Al2O ,4.758,12.99,90.,90.,120.,0 0,1,2,3.4802,75. 1,0,4, ,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. 0,0,12,1.0831,4. 1,3,4,1.0781,8. 2,2,6,1.0426,14. 2,1,10,0.9976, ,0,0,0,0
MgO.jcpds (versions 1 & 4) One diffraction standard, with up to 20 lines each VERSION: 4 COMMENT: MgO (JCPDS , EOS from Jackson) K0: K0P: SYMMETRY: CUBIC A: ALPHAT: DIHKL: DIHKL: DIHKL: DIHKL: DIHKL: DIHKL: DIHKL: DIHKL: DIHKL: DIHKL: MgO (JCPDS , EOS from Duffy et al, 95) , 177.0, d (A) I/I0 h k l
Most of the operations occur within the graphics window (shown above), but much of the output is in the text window Some of the output is put into text files.
Running the program creates two windows, a text window and a graphics window.
Description of Plot After the file is plotted, the following are displayed (next slide): The diffraction spectrum in terms of channel number Calibration information used, including 2 q Reference spectrum, for “standard” listed Two “Titles” – in our operations, Title 1 applies to the entire data set, and Title 2 applies to the current file only Filename and Path of displayed file Detector element number