ATHENA User s Guide. Bruce Ravel [email protected]

Size: px
Start display at page:

Download "ATHENA User s Guide. Bruce Ravel [email protected] http://bruceravel.github.io/demeter/"

Transcription

1 ATHENA User s Guide Bruce Ravel [email protected] Document version 2.0 for athena version January 9, 2014

2 Just as Phaeacian men excel the world at sailing, driving their swift ships on the open seas, so the women excel at all the arts of weaving. That is Athena s gift to them beyond all others a genius for lovely work, and a fine mind too. Homer, The Odyssey, Book 7

3 athena is copyright c Bruce Ravel This document is copyright c Bruce Ravel. This work is licensed under the Creative Commons Attribution-ShareAlike License. To view a copy of this license, visit or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. You are free: to Share to copy, distribute, and transmit the work to Remix to adapt the work Under the following conditions: Attribution. You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license. Any of these conditions can be waived if you get permission from the author. For any reuse or distribution, you must make clear to others the license terms of this work. Any of the above conditions can be waived if you get permission from the copyright holder. Nothing in this license impairs or restricts the author s moral rights. Your fair dealing and other rights are in no way affected by the above. This is a human-readable summary of the Legal Code (the full license).

4 4 This work is licensed under the Creative Commons Attribution-ShareAlike License.

5 Contents 1 Forward Layout and typesetting conventions Acknowledgements Data citations Installing Athena on your computer Building this document from source Obtaining the document source Building the html document Building the LaTeX document Using the document with Athena Introduction to Athena First Look at ATHENA Getting help Folders and log files Data import Column selection dialog Data types and energy units Multi-element detector data Project selection dialog Multiple data set import Reference channel Preprocessing data Rebinning quick scan data Other pre-processing chores Normalization and the AUTOBK Algorithm Normalization The normalization algorithm The flattening algorithm Getting the post-edge right Getting the pre-edge right Measuring and normalizing XANES data The Autobk Algorithm and the Rbkg Parameter Spline clamps and k-weight in background removal Spline clamps The effect of k-weight on background removal The interaction between spline clamps and k-weight Spline range in background removal

6 CONTENTS 5 Plotting Your Data in ATHENA Right clicking on plot buttons Plotting space tabs Plotting in energy Plotting in k-space Plotting in R-space Plotting in q-space Spectral resolution and k-range Stacked plots Indicators Group specific plot parameters Other plotting features Zooming and cursor position Special plots for the current group Special plots for the marked groups Special plots for merged groups Special plotting targets Phase corrected plots Athena s User Interface Using the group list Copying groups Reorganizing the group list Information about items in the group list Using the mouse in the group list Shrinking and expanding the group list Marking groups Using regular expressions to mark groups Pluck buttons Plot styles Using different k-weights Frozen groups Setting parameters in Athena Constraining parameters between data groups Constraining individual parameters Constraining groups of parameters Constraining all parameters Setting E Other ways of setting e Default parameter values Data export Column output files Project files The project file format and compatibility with older versions Parameter report files Data processing Calibrating data groups Aligning data groups Merging data groups This work is licensed under the Creative Commons Attribution-ShareAlike License.

7 CONTENTS Merging options Keyboard shortcuts Rebinning data groups Deglitching and truncating data Deglitching Truncation Smoothing data Convoluting data groups Deconvoluting data groups Self-absorption approximations Correcting XANES data Correcting EXAFS data Information depth Algorithm references Dispersive XAS Multi-electron excitation removal Copy series Data summation Data analysis in Athena Linear combination fitting Fitting a single data group Constraints and modifications to the fit Fitting, statistics, reports Constraining linear combination fit parameters between groups Batch processing Combinatorial fitting using many standards Principle component analysis Peak fitting Fitting a single data group The fit results tab Fitting multiple groups and the sequence tab Log-ratio/phase-difference analysis Difference spectra Uses of difference spectra Other main window chores File metadata Project journal File type plugins Overview of how plugins work Example plugin Namespace Required methods and variables required attributes the is method the fix method the suggest method Athena s plugin registry System plugins and user plugins Miscellaneous advice on plugins Setting user preferences This work is licensed under the Creative Commons Attribution-ShareAlike License. 7

8 CONTENTS 12 Worked examples Basic data processing Linear combination analysis Examining the data Improving the fit Understanding the fit Combinatorial analysis Analyzing the data series This work is licensed under the Creative Commons Attribution-ShareAlike License.

9 Chapter 1 Forward The best way to learn how to use athena is to use athena. Poke at the buttons, poke at the menus, try things just to see what happens. And above all, remember the physical and mathematical meanings of your data and of the data analysis techniques and think about how actions in athena relate to those meanings. athena is a powerful and versatile program capable of supporting almost all of your common (and not-socommon) XAS data processing chores. It is not, however, a particularly intuitive program. I doubt that any XAS program could be intuitive. On top of that, athena has accumulated lots of features over the years. Many of these features are necessary for high-quality data processing, others are bells and whistles intended to make data processing more convenient or more fun. This document attempts to be a comprehensive overview of all of athena s features. There are lots of words, but also lots of pictures. Feel free to jump around and to focus on the parts most directly relevant to your immediate needs. I hope you find this document and the program helpful. 1.1 Layout and typesetting conventions Here is a summary of fonts, colors, and symbols used to denote different kinds of text. Note that some of these may appear the same in certain presentation media. File names look C:\like\this. The names of parameters for data processing look like this. Emphasized text looks like this. Bold text looks like this. Links to web sites look like this. Internal links look like this (Sec. 1.1). Keyboard shortcuts look like this: Control - q. This example means to hit the q key while holding the Control (or Ctrl) key. Program names from the ifeffit family look like this: athena. References to athena s preferences are written like this: Bkg fraction. To modify this preferences, open the bkg section of the preferences tool (Sec on page 145) and then click on fraction. 9

10 1.2. ACKNOWLEDGEMENTS Caution: Points that require special attention are written inside of attentiongrabbing boxes. To Do: Notes about features missing from the document are indicated like this. New feature: Features that have been recently added to athena are indicated like this if they have not yet been properly documented. This symbol indicates a section describing one of athena s features that I consider especially powerful and central to the effective use of the program. This symbol indicates a section with difficult information that newcomers to athena might pass over on their first reading of this document. The html version of this document makes use of HTML 4.1 character entities (mostly Greek symbols) and will not display correctly in very old browsers. 1.2 Acknowledgements I have to thank Matt Newville, of course. Without ifeffit there wouldn t be an athena. One afternoon over coffee, Julie Cross and Shelly Kelly lit the spark that eventually lead to the first version of this document. Some content of this document was inspired by the XAS review article by Shelly Kelly and Dean Hesterberg (S.D. Kelly, D. Hesterberg, B. Ravel, Methods of soil analysis, (2008) p ), the first draft of which I had the pleasure of editing and the final draft of which I ended up on the author list. I have a huge debt of gratitude to all the folks on the ifeffit mailing list. Without the incredible support and wonderful feedback that I ve received over the years, athena would be a shadow of what it is today. The following great software tools were used to create this document: The Template Toolkit, a really fun, really powerful templating system that was used to create this entire document 10 This work is licensed under the Creative Commons Attribution-ShareAlike License.

11 CHAPTER 1. FORWARD The Perl programming language, PPI::HTML, and Syntax::Highlight::Perl from the CPAN repository. The Emacs text editor along with tt-mode and the simply wonderful Emacs Code Browser The Shutter screen capture tool. Almost all screenshots were made of either athena or the Gnuplot window on my KDE desktop. The screenshots of spreadsheets made from a report file (Sec. 8.6 on page 88) and an LCF fit report (Sec on page 160) are displayed in LibreOffice. The images of the Tholos temple on the front page and the Klimt painting Pallas Athena in the navigation box of the html document are from The image used as the athena program icon is from a Terracotta lekythos depicting Athena holding a spear and aphlaston.. The image is licensed as Creative Commons Attribution-Share Alike 3.0 and can be found at Wikimedia Commons. 1.3 Data citations The copper foil data shown here and there are the data that Matt Newville, Yanjun Zhang, and I measured one day back in 1992 that has, inscrutably, become the copper foil data shown and referenced in a large fraction of the XAS theory literature. The copper film in the self-absorption section (Sec. 9.9 on page 105) comes from Corwin Booth. The platinum catalyst data shown in the difference spectrum section (Sec on page 134) were donated by Simon Bare. The gold edge data shown in many places throughout this document are taken from measurements published as M. Lengke, et al., Environ. Sci. Tech., 40:20, (2006) p (DOI: /es061040r). The gold oxide data shown in the smoothing section (Sec. 9.6 on page 101) were donated by Norbert Weiher. The iron foil data shown in the convolution section (Sec. 9.7 on page 102) and elsewhere were measured by me while I was commissioning NSLS beamline X11B in The sulphate data shown in the self-absorption section (Sec. 9.9 on page 105) were donated by Zhang Ghong and come with Daniel Haskel s Fluo program. The copper data shown in the same section (Sec. 9.9 on page 105) come with Corwin Booth s RSXAP program. Data on a hydrated uranyl phosphate that appear in several places are the U L III standard used by my former research group. Spectra from this standard have appeared in many publications from that group. The U 3 O 8 sample shown in the the deglitching section (Sec. 9.5 on page 97) are from the group s standards library. Tin edge data which appear in several places are from C. Impellitteri, O. Evans, B. Ravel, J. Environ. Monit., 4, (2007) p (DOI: /b617711e). Data on PbTiO 3, BaTiO 3, and EuTiO 3 are taken from my own PhD thesis. 1.4 Installing Athena on your computer Linux, BSD, and other unixes It is not especially hard to build athena from source code. The procedure is explained in detail on this web page: An excellent addendum to those instructions is at This work is licensed under the Creative Commons Attribution-ShareAlike License. 11

12 1.5. BUILDING THIS DOCUMENT FROM SOURCE Debian and debian-based Linux Coming soon... Windows Follow the links on the Demeter homepage to download the installer and updater packages. download, double-click, and answer the questions. Macintosh Coming soon... Just 1.5 Building this document from source Obtaining the document source The source files and all images files for this document can be downloaded using Git. To grab the source, you will need an Git client on your computer. This command checks a copy of the source out and downloads it onto your computer: git clone This document is written using The Template Toolkit. It requires the perl interpreter and a fairly complete installation of version 2 of The Template Toolkit to build. If TT2 is not available as a package for your system (it is available as a pre-compiled package for many versions of Linux; a ppm file for ActivePerl on Windows exists; a Fink package for OSX exists) it can be downloaded from its website and installed by hand or downloaded using perl s CPAN utility. You will also need to install the Image::Size, PPI::HTML, and Syntax::Highlight::Perl modules. Compiling the L A TEX version of the document will require a fairly complete L A TEX installation as I make use of many styles, including amsmath, amsfonts, amssymb, floatflt, wrapfig, fancybox, fancyhdr, keystroke, varioref, hyperref, and more. (I have no experience building the PDF document on any system other than linux.) Once TT2 and the other modules are installed, building the document should be quite simple. TT2 s ttree program is used to recurse the through the directory structure containing the templates. The bin/build, and bin/tex scripts are wrappers around ttree. They invokes a number of important command line options and pass any further command line options to ttree. TT2 was chosen for this project because it is an excellent templating tool. A templating tool was chosen because the strong separation of format and content was attractive to me. The template source is used to generate html and PDF versions of the document as well as the pod format used by athena s internal document viewer. Contributions to the document are extremely welcome. The very best sort of contribution would be to directly edit the source templates and commit your changes to the SVN repository. The second best sort would be a patch file against the templates in the repository. If TT2 is more than you want to deal with, but you have corrections to suggest, I d cheerfully accept almost any other format for the contribution. (Although I have to discourage using an html editing tool like FrontPage to edit the html directly. Tools like that tend to insert lots of additional html tags into the text, making it more difficult for me to incorporate your changes into the source.) Building the html document After downloading and unpacking the source for demeter, you must configure it to build correctly on your computer. This is simple: 12 This work is licensed under the Creative Commons Attribution-ShareAlike License.

13 CHAPTER 1. FORWARD cd doc/aug./configure To build the entire document as html./bin/build -a Individual pages can be built by specifying them on the command line:./bin/build bkg/norm.tt forward.tt Building the LaTeX document The L A TEX document is built by./bin/tex -a cd tex/ pdflatex athena.ltx pdflatex athena.ltx You need to run pdflatex two or three times to get all of the section numbering and cross referencing correct. The varioref package, used to handle cross-referencing, is sometimes a little fragile. If you see the following error message: simply hit return. The message should disappear when you recompile the document.! Package varioref Error: vref at page boundary (may loop) Using the document with Athena The html document files can be used by athena. They are installed at the time that demeter is installed (and they can be installed on a Windows machine by downloading and installing the documentation package). If the html pages cannot be found, athena will try to use your internet connection to fetch them from the Demeter homepage. This work is licensed under the Creative Commons Attribution-ShareAlike License. 13

14 1.5.4 Using the document with Athena 14 This work is licensed under the Creative Commons Attribution-ShareAlike License.

15 Chapter 2 Introduction to Athena athena is an interactive graphical utility for processing EXAFS data. It handles most of the common data handling chores of interest at the beamline or for preparing your data to begin analysis. athena is a graphical front end to Matt Newville s ifeffit library written entirely in the Perl programming language and using the Gnuplot program for data display. It is being developed on Linux and tested on various flavors of Windows, but should work on any unix-like, Windows, or Mac operating system. athena is intended to provide high quality analysis with a highly usable interface. It allows very fine grained control over the processing and plotting of individual data sets while still enabling the processing and visualization of large quantities of data. Among athena s many, many features, you will find: Convert raw data to µ(e) File import plugins for reading arbitrary data files Process and plot multiple data scans simultaneously Merge data as µ(e), normalized µ(e), or χ(k) Energy calibration Align data scans with or without a reference channel Deglitch, truncate, convolve, or smooth µ(e) data Self-absorption corrections for fluorescence spectra Compute difference spectra Fit linear combinations of standards to µ(e), derivative of µ(e), or χ(k) data Fit peak functions to XANES data Log-ratio/phase-difference analysis Background removal using the AUTOBK algorithm Forward and backward Fourier transforms Save data as µ(e), normalized µ(e), χ(k), χ(r), or back-transformed χ(k) Save project files, allowing you to return to your analysis later... and much, MUCH more! 15

16 2.1. FIRST LOOK AT ATHENA 2.1 First Look at ATHENA When athena first starts, something like Figure 2.1 appears on your computer screen. The athena window is divided into several parts. We will discuss each of these parts and give each a name. Figure 2.1: The parts of the Athena. At the top of the window is a menu bar. This works much like the menu bar in any program. Much of the functionality in athena is accessed through those menus. The largest part is the main window, highlighted in the picture above with a red border. The red border does not happen in the real program it s there simply to clarify this discussion. The main window is divided into six parts. The top box identifies the file name of the current project file (Sec. 8.2 on page 85). Below that, are various parameters identifying the current data group. The next three boxes are used to define the parameters associated with normalization and background removal, forward Fourier transforms, and reverse Fourier transforms. At the bottom of the main window are a couple of parameters associated with plotting. At the bottom of the screen is the echo area. This very important space is used by athena to communicate with you, the user. This space is used to display informational messages while athena is working on your data, error messages when it runs into trouble, and other kinds of messages. The large blank area on the right is the group list area (Sec. 6.1 on page 63). As data are imported into athena, they will be listed in this space. Access to the data already imported is made by clicking in this space. Above the group list area are the mark buttons (Sec. 6.2 on page 67) The blank space next to the mark buttons is the modified project indicator. This indicator shows when your project has been modified and needs to be saved. 16 This work is licensed under the Creative Commons Attribution-ShareAlike License.

17 CHAPTER 2. INTRODUCTION TO ATHENA Below the group list area are the plot buttons. Below that are the buttons used to set the k-weighting for use when plotting in k-space or when making a forward Fourier transform. Below that are various other plotting controls (Sec. 6.2 on page 67) in the plotting options section. Figure 2.2: Athena, after importing some data. After importing several data files, each is made into a data group and listed in the group list. The label and the check button next to it are the main controls for interacting with data in athena. 2.2 Getting help There is quite a bit of help built right into athena. Typing Control - m or selecting Document from the Help menu will display athena s document in a web browser or in the built-in document viewer. The Document sections submenu allows you to jump directly to a particular topic. Also, many parts of the program have a button which will take you directly to the part of the document that describes that part of the program. 2.3 Folders and log files On occasion, it is helpful to know something about how athena writes information to disk during its operations. working folder Many of athena s chores involve writing temporary files. Many file type plugins write temporary files after performing some transformation on the original data. gnuplot writes temporary files as part of its plot creation. These files are stored in the stash folder. On linux (and other unixes) this is $HOME/.horae/stash/. On Windows this is %APPDATA%\demeter\stash. log files This work is licensed under the Creative Commons Attribution-ShareAlike License. 17

18 2.3. FOLDERS AND LOG FILES When athena runs into problems, it attempts to write enough information to the screen that the problem can be addressed. This screen information is what Bruce needs to troubleshoot bugs. On a linux (or other unix) machine, simply run athena from the command line and the informative screen messages will be written to the screen. You can cut-n-paste that text or capture the output by running athena through tee: > dathena tee capture.log On a Windows machine, it is uncommon to run the software from the command line, so athena has been instrumented to write a run-time log file. This log file is called dathena.log and can be found in the %APPDATA%\demeter folder. %APPDATA% is C:\Users\<username>\AppDataRoaming\ on Windows 7 and 8. It is C:\Documents and Settings\<username>\Application Data\ on Windows XP and Vista. In either case, <username> is your log-in name. 18 This work is licensed under the Creative Commons Attribution-ShareAlike License.

19 Chapter 3 Data import athena is very versatile in how she reads in data files. Pretty much any data in the form of columns of numbers can be successfully read. With a few exceptions, athena relies upon ifeffit s read data() command to handle the details of data import. ifeffit is clever about recognizing which part of a file is columns of numbers and which part is not. In the following, I ll explain how the read data() command interprets files, explain the limits on its and athena s abilities to interpret a data file, and discuss the kinds of manipulations of data that can and cannot be performed by athena as data are imported. athena expects data of one of a few types. Column data in which the columns represent such things as the energy grid and the scalars measured during the experiment are the most common sort of data that most people use import into athena. athena s column selection dialog is used to convert the raw scalars into µ(e) data. Other common kinds of data files that might be read into athena are files that contain µ(e) or chi(k) data in columns or the output files from Feff, xmu.dat and chi.dat. Here is an example of a data file that will make athena as happy as can be. There are some header lines, followed by a line of dashes, followed by a line of column labels, followed by lines containing columns of data. # X15B project: MT 9/23/04 # original file: STD1.001 # unpacked from original data as a sequence of 4-byte floats # # energy I0 narrow wide etc... In this example of a perfectly formatted file, the header lines, the line of dashes, and the column labels line are all preceded by a hash (#) mark. ifeffit is thus able to recognize these as header lines. Since ifeffit recognizes them as such, athena will store them in the project along with the data. Because there is a line of dashes and because it is followed immediately by column labels, athena is able to use these labels in the column selection dialog. A few other common US keyboard symbols, such as also be understood as marking header lines. The numbers in the columns can be integers, floats (such as 1.234, ,.1234 or ), or exponentials (such as 1.23e45 or -1.23E-45). Anything interpretable as a number in the C programming language will be interpretable in this context. The columns of numbers go to the end of the file. There is no text following 19

20 the data. When data is recorded as described above, it will be fully utilized by athena. The headers will be recorded, the column labels will be used, the data will be interpreted. athena can, however, accommodate significant deviation from the format described above. If the header lines are not marked by a # or some other recognizable marking character, ifeffit will not be able to recognize headers or column labels. As long as no text follows the data, the columns will still be understood as columns of data and the data can be imported by Athena. If the line of dashes is missing, again the headers and column labels will not be recognized, but the columns of data will be. If no headers are in the file, the columns of data will still be understood as data. athena expects that the data are recorded as a function of energy and that one of the columns contains energy values. The assumption is that the first column is the energy column, but that can be changed in the column selection dialog. athena works in ev. If data are recorded in kev, there is a menu in the column selection dialog that must be set accordingly. Here are some operations that can be performed as data is imported. 1. Data from a multi-element detector can be summed on the fly. 2. Data from a multi-element detector can be imported such that each detector channel is imported into its own data group. 3. Data can be negated, i.e. multiplied by -1, or multiplied by an arbitrary constant 4. A reference channel can be read from the the same file. 5. Data can be preprocessed. That is, data can be truncated, deglitched, aligned to a standard, and have its parameters constrained to a standard Here are some operations that can be handled using the Plugin architecture (Sec on page 140). 1. Data can be imported as a function of pixel position on an area or linear detector. 2. Conversion from wavelength to energy. 3. Conversion from encoder reading or motor steps to energy. 4. Conversion of data in a binary format 5. Dead-time corrections using columns from the data file. 6. Any math expression more complicated than sums of columns in the numerator and denominator, e.g. plugins allow you to multiply the If column by 7 and divide by the sine of the I0 column, if that s what you really want. If some of the criteria for the data file format are not met, for example if there is text following the data columns or if you need to perform one of the operations not yet supported, you will need to process you data before trying to import into athena. There are examples of data files that athena will process before sending off to ifeffit for import. An example is the data file format from beamline X10C at NSLS. Files from that beamline cannot be imported as written by ifeffit s read data() command. athena will recognize such a file and process it as needed before importing it. This can be done with other beamlines. You should contact Bruce if you are the beamline scientist or a frequent user of some beamline which writes data in a way that read data() cannot import. As a final comment, I would encourage beamline scientists and the authors of data acquisition software to consider their users when designing data file formats. While I certainly will not say that beamlines should be 20 This work is licensed under the Creative Commons Attribution-ShareAlike License.

21 CHAPTER 3. DATA IMPORT required to accommodate athena or even that beamline staff have any obligation to recommend athena to their users, the truth is that athena is becoming an increasingly common tool in the EXAFS community. The format that best serves athena is actually a fine format that can be imported by a very wide variety of EXAFS software, plotting software, spreadsheets, and other programs. It s a good format and your users would be well served by your adopting it. 3.1 Column selection dialog To import a data file, select Open file from the File menu or type On my Linux computer, it looks like Figure 3.1 Control - o. A file selection dialog opens. Figure 3.1: The file selection dialog on a Linux computer. It looks somewhat different on Windows, but behaves the same. It allows you to navigate your disk to find the file you want to import. Once you find that file, click on it then click on the Open button. Once you have selected a file to import the column selection dialog, shown in Figure 3.2 on the following page, appears. On the right side of this dialog, the contents of the data file are displayed. This allows you to examine the file to help you figure out which columns should be imported to turn into the µ(e) data. On the left are various control for specifying which columns contain the energy values and which contain the signals from the various detectors. Typically, the signals from the detectors are saved to disk as columns of numbers. These columns need to be combined depending on the nature of the experiment. For a transmission experiment, the incident channel is divided by transmission channel and the natural log is taken at each point. For fluorescence data, the fluorescence channel is divided by the incidence channel. Electron yield data is like fluorescence data the yield channel is divided by the incident channel. The controls in the tabs at the bottom left are the discussed in later sections. In the example shown, the incident channel is, for some reason, called mcs3. Since this is transmission data, I have checked the mcs3 button for the numerator. The transmission channel is called mcs4 and its button is checked for the denominator. This work is licensed under the Creative Commons Attribution-ShareAlike License. 21

22 3.1.1 Data types and energy units Figure 3.2: The column selection dialog. As you check the buttons, some helpful things happen. The first is that equation for how the columns combine to form µ(e) is displayed in the box below the column selection buttons. Also as you check buttons, the data are plotted. If you have selected the correct columns and chosen the numerator and denominator correctly, the plot will look like XAS data. If the plot is upside-down, then you need to switch the numerator and denominator. If the plot doesn t look like XAS at all, you need to try some of the other channels. I chose this example because the columns are labeled somewhat confusingly. Often the columns will be labeled in the file more obviously with names like I0 or It. In this case, we either need to know what the columns mean or patiently click through the buttons to figure it out. As a last resort, you may need to ask the beamline scientist! Data types and energy units Occasionally, athena needs a bit more information to interpret your data correctly. The data types menu is shown in Figure 3.3 on the next page. The default is for data to be imported as µ(e). The other choices are: xanes(e) : µ(e) data measured over a limited data range and for which you do not need to look at the χ(k) norm(e) : µ(e) data that have already been normalized in some other way. These data will not be normalized by athena chi(k) : χ(k) data, that is data that have already been background subtracted from µ(e) xmu.dat : the xmu.dat file from feff If you make a mistake and import your data as the wrong data type, you can change between any of the energy-valued (µ(e), normalized µ(e), XANES, or detector) record types at any time by selecting Change data type from the Group menu and selecting the correct choice from the popup dialog, Figure 3.4 on the facing page. This dialog cannot, however, be used to change χ(k) data to an energy-value type or vice-versa, nor to change one of the feff types to a non-feff type. 22 This work is licensed under the Creative Commons Attribution-ShareAlike License.

23 CHAPTER 3. DATA IMPORT Figure 3.3: Data types in the column selection dialog. athena uses electron volts as its energy unit. It uses a simple heuristic to figure out if an input file is in ev or kev. In case athena gets it wrong, you can specify the energy unit with the Energy units menu. Dispersive XAS (Sec on page 110), i.e. data which is a function of pixel index, requires special treatment. Figure 3.4: The dialog for changing data type of a group. New feature: There is now a label on the main page right next to the Freeze button which identifies the file type of the data. You can toggle between xanes and xmu data by Control-Alt-Left clicking on that label Multi-element detector data athena s column selection dialog has some special features for dealing with multi-element detectors. You can select all the channels of the MED as elements of the numerator, as shown in Figure 3.5 on the following page. Importing the data will then add up the channels on the fly and put a group containing the summation of This work is licensed under the Creative Commons Attribution-ShareAlike License. 23

24 3.2. PROJECT SELECTION DIALOG Figure 3.5: Importing multi-element data in the column selection dialog. the channels in the group list. You have the option of clicking the button that says Save each channel as a group, as in Figure 3.6. Figure 3.6: Importing multi-element data in the column selection dialog and saving each channel as a group. Then, instead of adding the channels to make one group, each channel will be imported as an individual group and given its own entry in the group list. This is handy for examining the channels and discarding any that are not of usable quality. 3.2 Project selection dialog Project files (Sec. 8.2 on page 85) are athena s mechanism for saving the state of an analysis project. The project selection dialog, shown in Figure 3.8 on page 26, provides a way of selectively importing part or all 24 This work is licensed under the Creative Commons Attribution-ShareAlike License.

25 CHAPTER 3. DATA IMPORT Figure 3.7: After importing the channels of multi-element data as individual groups. of the contents of the project file. Project files, like any other files are imported using the file selection dialog (Sec. 3.1 on page 21). athena will recognize a project file and present the project selection dialog. The contents of the project file are listed on the left side of the dialog. The contents of the journal (Sec on page 140) are listed in the box at the top right. When you click on one of the data groups in the list on the left, it gets plotted and its title lines are inserted into the box at the lower right. Using these parts of the dialog, you can examine the contents of your project file before importing them into athena. By selecting some of the projects from the list, you can import a subset of the project file. The group listing uses extended selection: Click on an item in the list to select one group Control -click (i.e. hold down the Control key while clicking) on an item in the list to add it to the selection Shift -click to on a group to select all groups between it and the previously selected group. The buttons labeled All, and None can be used to select all groups or to clear the selection. The Invert button will invert the selection of each group. Below those three buttons are a series of controls allowing somewhat finer grained control over how items from the group list are selected. The Select every line allows selection by a regular pattern. Select matching allows you to select groups that match a specified pattern using the full strength of perl s regular expression (Sec on page 68). Once you have selected the groups you want to import, click the Import button. If no groups are selected then all the groups will be imported. This work is licensed under the Creative Commons Attribution-ShareAlike License. 25

26 3.3. MULTIPLE DATA SET IMPORT Figure 3.8: The project selection dialog. 3.3 Multiple data set import You can import multiple data sets in the same manner that was explained in the last section. Select Open file from the File menu or type Control - o. When the file selection dialog opens, you can select more than one data file by clicking on file names while holding down the Control key. On my Linux computer, it looks like Figure 3.9 on the next page. Note that three files are highlighted in the file listing and that those three files are listed below in the File name box. Another way of selecting multiple files is to click on a file in the listing then click on another file while holding down the Shift key. When you do this, all files between the two you clicked on will be selected. When you click the OK button, all of the selected files will be imported. If all of the files are of the same type, athena will import them all with only one interaction of the column selection dialog. Thus, if you select several files that were measured one after the other, they will all be imported using the same column selections as well as the same parameters for the reference channel, rebinning, and preprocessing (all of which will be described in the following sections). If, however, a file is found that appears to be of a different format, the column selection dialog will reappear as needed. athena considers two files to be the same if they have the same number of columns and those columns have the same labels. Each file imported in this way will be listed in the group list, shown in Figure 3.10 on the facing page When you import multiple project files, the project selection dialog (Sec. 3.2 on page 24) will appear for 26 This work is licensed under the Creative Commons Attribution-ShareAlike License.

27 CHAPTER 3. DATA IMPORT Figure 3.9: Importing multiple data sets with the file selection dialog. Figure 3.10: athena after importing multiple data sets. This work is licensed under the Creative Commons Attribution-ShareAlike License. 27

28 3.4. REFERENCE CHANNEL the first one in the list. If you import the entire contents of the project file, then the entire contents of all remaining project files will also be imported. If, however, you import only a subset, the project selection dialog will appear for the next project file. As soon as you import an entire project, all subsequent projects will be imported without having to interact with the dialog. 3.4 Reference channel The column selection dialog offers several other features related to data import. In this section we will see how to import a reference channel. It is common to place a third ionization chamber in line after the transmission chamber and to place good transmission standard between the two. The point of measuring the standard is that it is measured in parallel with your real sample. This standard can then be used to align the actual data using the data alignment tool (Sec. 9.2 on page 91). The standard often is a zero-valent foil, but the most important thing is that it is an excellent standard which will yield consistently high-quality data. The other most important thing is that you always use the same sample as your reference standard for ever experiment you make at a particular edge. To this end, it is wise to make a library of standards and carry them with you to the synchrotron. By using the same standard for every experiment at an edge, you can align any data, even data measured years apart at different synchrotrons. Figure 3.11: Importing a reference channel with the column selection dialog. The reference channel selection works almost the same as column selection for the data except that you don t need to specify the energy column again the same column is used. When a reference channel after the transmission channel is used, you should use the transmission channel as the numerator and the reference channel as the denominator. Another common solution to measuring a reference channel is measure elastically scattered radiation through the standard with a PIN diode. In that case, I0 is the numerator and the diode is the denominator. You can plot the reference channel to make sure that you have selected the correct channels with the Plot reference button. If your reference standard is of an element with a nearby edge energy, uncheck the button labeled Same element. If you use some other kind of reference measurement that is not a transmission measurement, you can uncheck the Natural log button. When you click the OK button, the data are imported and inserted into the group list. The reference 28 This work is licensed under the Creative Commons Attribution-ShareAlike License.

29 CHAPTER 3. DATA IMPORT channel is placed in the group list below its data. The reference channel is just like any other group, with one distinction. The data and its reference channel are tied together in the sense that the values for their Energy shift parameters will always be the same. This relationship is shown visually by the change in color of the text in the box for Energy shift, as seen in in Figure Figure 3.12: Data imported with a reference channel in athena. When you change the value of Energy shift for the reference, the value of Energy shift for the data changes as well. (And vice versa!) This feature of reference channels is put to good use in data alignment (Sec. 9.2 on page 91). Occasionally, it is useful to tie two data groups together in this way. This can be done by marking the two groups you want to tie together as data and reference, then selecting Tie reference channel from the Group menu. To Do: It should be possible to tie together two or more data groups in a reference relationship that would be useful for multi-element detector data and some other situations. 3.5 Preprocessing data There are a number of other operations that athena can perform on your data as it is imported. These are found in the other tabs on the bottom left of the column selection dialog. Note that all of the pre-processing This work is licensed under the Creative Commons Attribution-ShareAlike License. 29

30 3.5.1 Rebinning quick scan data chores discussed here can also be performed on data after it has been imported. See the data processing chapter (Sec. 9 on page 89). for more details Rebinning quick scan data Some beamlines offer the option of collecting data as a quick scan. In that scanning mode, the monochromator is slewed continuous from the beginning of the scan to the end. The detectors are read continuously and integrations of the detector signals are stored in intervals. The length of these intervals and the slewing speed of the monochromator determine the energy width of each measurement bin. Typically these measurement parameters are chosen to provide adequate resolution through the edge typically a third or a half of an electron volt. This results in data that are vastly over-sampled in the EXAFS region. To improve the statistics in the EXAFS region and to make the data arrays smaller, it is useful to rebin the data. This process uses a boxcar averaging to place the evenly spaced quick scan data onto a typical EXAFS grid. That grid is usually something like 10 ev in the pre-edge, 0.5 ev through the edge, and 0.05 Å 1 in the EXAFS region. In Figure 3.13, I have imported some data on a uranyl compound measured in quick scan mode: Figure 3.13: Rebinning data on the fly as it is imported using the column selection dialog. At this stage, athena has not examined the data closely enough to have guessed what edge you are measuring, so you must specify the element symbol of the absorbing atom. The remaining numeric parameters define the grid onto which these data will be rebinned. The first two numbers define the boundaries of the edge region in energy, the third defines the size of the grid in the pre-edge, the fourth defines the size of the grid through the edge, and the last defines the grid in wavenumber in the EXAFS region. athena will remember the values of these parameters between data sets. However, the default is to turn off rebinning for each new data set. Therefor you must click to the rebinning tab for every data set you import, and click on the Perform rebinning button. When you import multiple data sets, though, rebinning will be performed on each one without intervention according to the normal rules of multiple data set import Other pre-processing chores This tab provides controls for a number of other things that can be done with your data as it is imported. 30 This work is licensed under the Creative Commons Attribution-ShareAlike License.

31 CHAPTER 3. DATA IMPORT The first one marking can be performed even on the first data set imported. The other two require that a standard be specified. The menu at the top of the tab contains every item from the group list. The one specified in that menu is the standard. Figure 3.14: Pre-processing data as it is imported using the file selection dialog. Here are descriptions of each of the pre-processing chores, seen in in Figure 3.14: Mark each data set If this is selected, each data set will be marked (Sec. 6.2 on page 67) as it is imported. Note that the reference spectrum is not marked. Also note that, unlike the other four pre-processing options, this one is always deselected when new data is imported. Align to the standard If this is selected, the data are aligned to the specified standard using the auto-alignment algorithm (Sec. 9.2 on page 91). If both the data and standard have reference channels, those are used in the auto-alignment. Set parameters to the standard If this is selected, all parameters (except for eshift ) will be set to the values of the standard (Sec. 7.1 on page 75). The pre-processing tab is one of athena s genuine power features. With a bit of forethought, most of your data processing can be performed automatically. I typically import one data file and carefully calibrate it and set its various parameters. Having done that, the remaining data gets well processed simply by reading it in. This kind of time saver is of particular value at the beam line. This work is licensed under the Creative Commons Attribution-ShareAlike License. 31

32 3.5.2 Other pre-processing chores 32 This work is licensed under the Creative Commons Attribution-ShareAlike License.

33 Chapter 4 Normalization and the AUTOBK Algorithm The primary function of athena is to import and process XAS data. In the broadest sense, this task takes three steps: Import raw data and convert it to µ(e). Normalize the data so that the measurement is independent of the details of the sample or the detector setup. Determine the background function and subtract it from the data to make χ(k). Of course, there are many other details, such as calibration, alignment, and deglitching. Those will be discussed in detail in later sections of the document. In this section, we will cover the details of the normalization algorithm and the autobk background removal algorithm. Special attention will be payed to the most important background removal parameters. For many measured µ(e) spectra, athena will do a good job of normalizing data and removing the background using its default parameters. In other situations noisy data, data with large white lines, data which terminate in the appearance of another edge user intervention is required. for those situations it is important that you understand well how the various parameters in the background removal section of the main window affect the data. 4.1 Normalization Normalization is the process of regularizing your data with respect to variations in sample preparation, sample thickness, absorber concentration, detector and amplifier settings, and any other aspects of the measurement. Normalized data can be directly compared, regardless of the details of the experiment. Normalization of your data is essential for comparison to theory. The scale of the µ(e) and χ(k) spectra computed by feff is chosen for comparison to normalized data. The relationship between µ(e) and χ(k) is: µ(e) = µ 0 (E) (1 + χ(e)) (4.1) 33

34 4.1.1 The normalization algorithm which means that χ(e) = (µ(e) µ 0 (E))/µ 0 (E) (4.2) The approximation of µ 0 (E) in an experimental spectrum is a topic that will be discussed shortly (Sec. 4.9 on page 41). This equation is not, in fact, the equation that is commonly used to extract χ(k) from the measured spectrum. The reason that equation is problematic is the factor of µ 0 (E) in the denominator. In practice, one cannot trust the µ 0 (E) to be sufficiently well behaved that it can be used as a multiplicative factor. An example is shown in Figure 4.1. Figure 4.1: µ(e) data for gold hydroxide, which crosses the zero axis in the EXAFS region. In the case of the gold spectrum, the detector setting were such that the spectrum crosses the zero-axis. Dividing these spectra by µ 0 (E) would be a disaster as the division would invert the phase of the extracted χ(k) data at the point of the zero-crossing. To address this problem, we typically avoid functional normalization and instead perform an edge step normalization. The formula is χ(e) = (µ(e) µ 0 (E))/µ 0 (E 0 ) (4.3) The difference is the term in the denominator. µ 0 (E 0 ) is the value of the background function evaluated at the edge energy. This addresses the problem of a poorly behaved µ 0 (E) function, but introduces another issue. Because the true µ 0 (E) function should have some energy dependence, normalizing by µ 0 (E 0 ) introduces an attenuation into χ(k) that is roughly linear in energy. An attenuation that is linear in energy is quadratic in wavenumber. Consequently, the edge step normalization introduces an artificial σ 2 term to the χ(k) data that adds to whatever thermal and static σ 2 may exist in the data. This artificial σ 2 term is typically quite small and represents a much less severe problem than a misbehaving functional normalization The normalization algorithm 34 This work is licensed under the Creative Commons Attribution-ShareAlike License.

35 CHAPTER 4. NORMALIZATION AND THE AUTOBK ALGORITHM The normalization of a spectrum is controlled by the value of the e0, pre-edge range, and normalization range parameters. These parameters are highlighted in Figure 4.2. Figure 4.2: Selecting the normalization parameters in athena. The pre-edge range and normalization range parameters define two regions of the data one before the edge and one after the edge. A line is regressed to the data in the pre-edge range and a polynomial is regressed to the data in the normalization range. By default, a three-term (quadratic) polynomial is used as the post-edge line, but its order can be controlled using the normalization order parameter. Note that all of the data in the pre-edge range and in the normalization range are used in the regressions, thus the regressions are relatively insensitive to the exact value of boundaries of those data ranges. The criteria for good pre- and post-edge lines are a bit subjective. It is very easy to see that the parameters are well chosen for these copper foil data. Both lines on the left side of Figure 4.3 on the following page obviously pass through the middle of the data in their respective ranges. Data can be plotted with the pre-edge and normalization lines using controls in the energy plot tabs (Sec on page 50). It is a very good idea to visually inspect the pre-edge and normalization lines for at least some of your data to verify that your choice of normalization parameters is reasonable. When plotting the pre- and post-edge lines, the positions of the pre-edge range, and normalization range parameters are shown by the little orange markers. (The upper bound of the normalization range is off screen in the plot above of the copper foil.) The normalization constant, µ 0 (E 0 ) is evaluated by extrapolating the pre- and post-edge lines to e0 and subtracting the e0-crossing of the pre-edge line from the e0-crossing of the post-edge line. This difference is the value of the edge step parameter. The pre-edge line is extrapolated to all energies in the measurement range of the data and subtracted from This work is licensed under the Creative Commons Attribution-ShareAlike License. 35

36 4.1.2 The flattening algorithm Figure 4.3: (Left) Cu foil µ(e) with pre and post lines. (Right) Normalized µ(e) data for a copper foil. µ(e). This has the effect of putting the pre-edge portion of the data on the y=0 axis. The pre-edge subtracted data are then divided by µ 0 (E 0 ). The result is shown on the right side of Figure 4.3. New feature: In version , an option was added to the context menu attached to the edge step label for approximating the error bar on the edge step The flattening algorithm For display of XANES data and certain kinds of analysis of µ(e) spectra, athena provides an additional bit of sugar. By default, the flattened spectrum is plotted in energy rather than the normalized spectrum. In Figure 4.4 on the next page, flattened data are shown along with a copy of the data that has the flattening turned off. To display the flattened data, the difference in slope and quadrature between the pre- and post-edge lines is subtracted from the data, but only after e0. This has the effect of pushing the oscillatory part of the data up to the y=1 line. The flattened µ(e) data thus go from 0 to 1. Note that this is for display and has no impact whatsoever on the extraction of χ(k) from the µ(e) spectrum. This is a nice way of displaying XANES data as it removes many differences in the shape of the post-edge region from the data. Computing difference spectra (Sec on page 134) or self absorption corrections (Sec. 9.9 on page 105), performing linear combination fitting (Sec on page 118) or peak fitting (Sec on page 125), and many other chores often benefit from using flattened data rather than simply normalized data. This idea was swiped from SixPACK Getting the post-edge right 36 This work is licensed under the Creative Commons Attribution-ShareAlike License.

37 CHAPTER 4. NORMALIZATION AND THE AUTOBK ALGORITHM Figure 4.4: Comparing normalized (red) and flattened (blue) data using a Cu foil. It is important to always take care selecting the post-edge range. Mistakes made in selecting the normalization range parameters can have a profound impact on the extracted χ(k) data. in Figure 4.5 is an extreme case of a poor choice of normalization range parameters. In this case, the upper bound was chosen to be on the high energy side of a subsequent edge in the spectrum. The resulting edge step is very wrong and the flattened data are highly distorted. Figure 4.5: (Left) The post-edge line is chosen very poorly for this BaTiO 3 spectrum. The upper end of the normalization range is on the other side of the Ba L III edge. (Right) The poor choice of normalization range for BaTiO 3 results in very poorly normalized Ti K edge data. The previous example is obviously an extreme case, but it illustrates the need to examine the normalization parameters as you process your data. In many cases, subtle mistakes in the choice of normalization parameters can have an impact on how the XANES data are interpreted and in how the χ(k) data are normalized. In Figure 4.6 on the next page, the different choice for the lower bound of the normalization range (42 ev in one case, 125 ev in the other) has an impact on the flattening of these uranium edge data data, which This work is licensed under the Creative Commons Attribution-ShareAlike License. 37

38 4.1.3 Getting the post-edge right Figure 4.6: (Left) Example of a subtle effect in how the post-edge line is chosen in a hydrated uranyl species. (Right) Comparing the flattened XANES data for different choices of post-edge line in a hydrated uranyl species. 38 This work is licensed under the Creative Commons Attribution-ShareAlike License.

39 CHAPTER 4. NORMALIZATION AND THE AUTOBK ALGORITHM in turn may have in impact in the evaluation of average valence in the system. The small difference in the edge step will also slightly attenuate χ(k) Getting the pre-edge right The choice of the pre-edge range parameters is similarly important and also requires visual inspection. A poor choice can result in an incorrect value of the edge step and in distortions to the flattened data. In Figure 4.7, we see the presence of a small yttrium K-edge at ev which distorts the pre-edge for a uranium L III -edge spectrum at ev as shown in in Figure 4.7. In this case the pre-edge range should be chosen to be entirely above the yttrium K-edge energy. Figure 4.7: A sediment sample with both uranium and yttrium Measuring and normalizing XANES data If time and the demands of the experiment permit, it is always a good idea to measure significant amounts of the pre- and post-edge regions. About 150 volts in the pre-edge and at least 300 volts in the post-edge is a good rule of thumb. With shorter regions, it may be difficult to find normalization boundaries that provide good normalization lines. Without a good normalization, it can be difficult to compare a XANES measurement quantitatively with other measurements. Reducing the normalization order might help in the case of limited post-edge range. When measuring XANES spectra in a step scan, it is often a good idea to add several widely spaced steps to the end of a scan to extend the normalization range without adding excessive time to scan. 4.2 The Autobk Algorithm and the Rbkg Parameter The frequency cutoff between the background and the data discussed in the previous section is determined by the rbkg parameter. This is the second parameter displayed in the background removal section of the main window. When data are imported into athena, rbkg is set to its default value (Sec. 7.3 on page 79), normally 1. This work is licensed under the Creative Commons Attribution-ShareAlike License. 39

40 4.2. THE AUTOBK ALGORITHM AND THE RBKG PARAMETER This example, like many of the examples in this Users Guide, can be found at among the examples at my XAS-Education site. Among these example files is one called fe.060, which contains a spectrum from an iron foil measured at 60 K. Import this by selecting Open file from the File menu or by pressing Control - o. Navigate to the location of your example files and select fe.060. The column selection dialog (Sec. 3.1 on page 21) then appears. For now, just click OK. The data is imported and rbkg is set to its default value of 1. The data and the background function found using the default parameter values can be found by pressing the E button. This is shown in Figure 4.8 on the left. Figure 4.8: (Right) The fe.060 data and its default background function. (Left) The fe.060 χ(k) data with its default background function. (Bottom) The fe.060 χ(r) data with its default background function. The background function is subtracted from the data and normalized, resulting in a χ(k) function. Press the k button to see χ(k), shown in the right panel in Figure 4.8. When you press the R button, the Fourier transform is plotted, as in the bottom panel in Figure 4.8. So rbkg is the value below which the AUTOBK algorithm removes Fourier components. As you can see, below 1 the χ(r) function is essentially 0, but above 1 the spectrum is non-zero. 40 This work is licensed under the Creative Commons Attribution-ShareAlike License.

41 CHAPTER 4. NORMALIZATION AND THE AUTOBK ALGORITHM Now let s examine the effect of choosing different values for rbkg. First, make a copy of the data so we can directly compare different values. Do that by selecting Copy current group from the Group menu or by pressing Shift - Control - y. athena now looks like Figure 4.9. Figure 4.9: athena with the original fe.060 data and a copy of that data. Click on the group Copy of fe.060 to display its parameters in the main window. Change rbkg to 0.2. Now we want to directly compare these two ways of removing the background. The way of plotting multiple items in the groups list involves the row of purple plotting buttons and the little check buttons next to the items in the group list. Click on the little check buttons next to fe.060 and Copy 1 of fe.060, as shown in the screenshot above. Now plot these two items by clicking the R button. It should look something like Figure 4.10 on the following page. I suspect the blue spectrum is something like what you expect EXAFS data to look like, while the red one seems somehow worse. In fact, it is easy to understand why the red one looks the way it does. The rbkg parameter specifies the R value below which the data is removed from the µ(e) spectrum. That is exactly what has happened in the red spectrum below 0.2 the signal is very small and the first big peak is, in fact, above 0.2. Those two, plotted as χ(k), are shown in Figure 4.10 on the next page on the right. The blue spectrum oscillates around the zero axis, as one would expect. The red one has an obvious, long-wavelength oscillation. It is that oscillation that gives rise to the low-r peak in the χ(r) spectrum. The background function, computed using 0.2 as the value of rbkg and plotted in energy, is shown in Figure 4.10 on the following page in the bottom panel. Using an rbkg value of 0.2 yields a background function that is not able to follow the actual shape of the data. This work is licensed under the Creative Commons Attribution-ShareAlike License. 41

42 4.2. THE AUTOBK ALGORITHM AND THE RBKG PARAMETER Figure 4.10: (Left) Comparing χ(r) for the data and its copy with rbkg values of 1 and 0.2. (Right) Comparing χ(k) for the data and its copy with rbkg values of 1 and 0.2. (Bottom) µ(e) and the background for the copy with an rbkg value This work is licensed under the Creative Commons Attribution-ShareAlike License.

43 CHAPTER 4. NORMALIZATION AND THE AUTOBK ALGORITHM What happens if the value of rbkg is set to a very large value? The χ(r) data for the values 1 and 2.5 are shown in Figure Figure 4.11: (Right) Comparing χ(r) for the data and its copy with rbkg values of 1 and 2.5. (Left) µ(e) and the background for the copy with an rbkg value 2.5. Using a very large value of rbkg results in significant change to the first peak in χ(r). We can see why by looking at the background function in energy in Figure With such a large value of rbkg, the background function has enough freedom to oscillate with frequencies that resemble the data. This results in a reduction of intensity under the first peak. The spline used to compute the background function has a limited amount of freedom to oscillate. The number of spline knots is determined by the Nyquist criterion. This number is proportional to the extent of the data in k-space multiplied by rbkg. These knots are spaced evenly in wavenumber. Thus the spline function can only have frequency components below rbkg. So where does that leave us? We want to make rbkg as big as possible so that the low-r peaks are as well suppressed as possible. On the other hand, too large of a value will result in damage to the data. The trick is to find a balance. A good rule of thumb is that rbkg should be about half the distance to the nearest neighbor. But that is only a rule of thumb. Real data can be really difficult. Noisy data, data with strong white lines, data truncated by the appearance of another edge all of these require careful consideration. While rbkg is the primary background removal parameter, several others should be investigated to yield a good background removal. Several of these are the subjects of the following sections. 4.3 Spline clamps and k-weight in background removal Spline clamps One of the shortcomings of the use of piece-wise splines to approximate the background function is that the ends of spline are somewhat ill-defined by virtue of not having more data preceding or following. At times, this can result in the end of the spline splaying up or down, away from the µ(e) data. This results in significant distortion to χ(k) data. This work is licensed under the Creative Commons Attribution-ShareAlike License. 43

44 4.3.2 The effect of k-weight on background removal ifeffit provides a tool called spline clamps. These work by adding an additional term to the χ 2 metric used to fit the spline to the µ(e) data. The difference between the spline and the data is computed for the first and last five data points. This sum of differences computed in energy is multiplied by a user-chosen scaling factor and added to the χ 2 computed from the R-range below rbkg. This has the effect of clamping the spline to the ends of the data range. In other words, we use the prior knowledge that µ 0 (E) is a smooth function through the oscillatory structure of µ(e) to put a restraint on the fit used to determine µ 0 (E). The user-selected multiplicative coefficient takes one of six predefined values: none, slight, weak, medium, strong, or rigid. These have values of 0, 3, 6, 12, 24, and 96, respectively and serve to set the strength of the clamp in the evaluation of χ 2. Figure 4.12: (Left) EuTiO 3 Ti K-edge data with the background subtracted using a k-weight of 1 and a high-end spline clamp of none. Note that the end of the spline deviates significantly from the end of the data. (Right) Comparing the effects of different values of the high-end spline clamp on the EuTiO 3 data with all other parameters equal. The data using the rigid clamp show the most physically reasonable behavior at the end of the data range. The default value of the clamp is none at the low end of the energy range and strong at the high end. Clamps tend not to help at the low energy end of the data. Since the µ(e) data is changing so quickly near the edge, biasing the spline to follow the data closely rarely helps improve the quality of the χ(k) data. A strong clamp at the high energy frequently improves the behavior of the spline near the end of the data. The behavior of the clamping mechanism can be configured using the preference tool (Sec on page 145). The Bkg nclamp preference changes the number of points at the end of the data range included in the calculation of the effect of the clamp. The Bkg clamp1 and Bkg clamp2 parameters set the strengths of the two clamps. The strengths of the clamps can be fine tuned by changing the numeric values. The parameter Clamp weak sets the the weak clamp value, and so on The effect of k-weight on background removal The background removal section has its own k-weight parameter which is distinct from the k-weight used for plotting and Fourier transforms (Sec. 6.5 on page 72). The background removal k-weight is the value used to evaluate the Fourier transform performed to determine the background spline. By varying the value of this k-weight, you can emphasize the lower or upper end of the data in the determination of the background. 44 This work is licensed under the Creative Commons Attribution-ShareAlike License.

45 CHAPTER 4. NORMALIZATION AND THE AUTOBK ALGORITHM For clean data with oscillatory structure at high energy that is small but observable, you may find that a larger value of the background removal k-weight produces a better χ(k) spectrum. In fact, setting this parameter to 2 or 3 can have a similar impact on the data as the highest value of the spline clamp shown in the image above. However, in data which are quite noisy, amplifying the noise by a large value of k-weight can have a dramatic effect leading to a very poor evaluation of µ 0 (E). Indeed, the µ 0 (E) evaluated from noisy data with a large value of k-weight will sometimes oscillate wildly, as shown in Figure Figure 4.13: Noisy data with µ 0 (E) computed using the default k-weight of 2. With a k-weight of 1, the data are still noisy (of course!) but the background function properly follows the data The interaction between spline clamps and k-weight The spline clamp and k-weight parameters sometimes interact strongly. The criterion that µ 0 (E) follow closely to the end of the data that is imposed by the spline clamp can have a surprising effect on noisy, heavily k-weighted data. This is what happened in the data shown in the previous section. Reducing the strength of the spline clamp can sometimes help. Sometimes your data are well served by a low k-weight and a strong spline clamp. Other times, a large k-weight and a weak clamp work better. Still other times, a strong k-weight and a strong clamp work best. How do you know what to do? There are no hard and fast rules, although you will develop an intuition for how different data will respond to different parameter values. Don t be shy about trying different combinations. 4.4 Spline range in background removal Two parameters that can have a big effect on the quality of the background removal are the limits of the spline range. By default, the spline used to approximate the background function is computed between 0.5 Å 1 and the end of the data range. (Those defaults can be set with the Bkg spl1 and Bkg spl2 preferences.) In the main menu, there are entry boxes for the values of the spline range in k and in energy. You can edit those interchangeably, when one pair is changed, the other pair is updated. The same is true This work is licensed under the Creative Commons Attribution-ShareAlike License. 45

46 4.4. SPLINE RANGE IN BACKGROUND REMOVAL Figure 4.14: The same noisy data as in the last figure, also with a background k-weight of 2. However, this time the high-end spline clamp was set to none. if you use the pluck buttons (Sec. 6.3 on page 70) to set their values. There are good reasons to try changing the lower or upper bounds of the spline range. In the case of data with a large, sharp white line, the autobk algorithm might have a hard time following that swiftly changing part of µ(e). The background removal might be improved by starting the spline range at a higher value. A good way to test the effect of spline range is to make a copy ( Shift - Control - y ) of the data group, change the lower spline boundary to a large value for the copy, and plot both groups as χ(k) or χ(r) using the k button or the R button. Changing the upper bound of the spline range is often helpful in data where the signal becomes very small at high k such that the level of greatly exceeds the χ(k) data when k-weighted or if the shape of the background function is unstable due to sample inhomogeneity or some other measurement problem. Figure 4.15 shows an example of a change in the upper bound of the spline range. Figure 4.15: Gold foil data showing the effect of changing the upper end of the spline range. The obvious effect of changing the spline range is that χ(k) is 0 outside the spline range, as seen on the 46 This work is licensed under the Creative Commons Attribution-ShareAlike License.

47 CHAPTER 4. NORMALIZATION AND THE AUTOBK ALGORITHM high-k end of the plot. Changing one end of the spline range can also have an effect on the opposite end of the spectrum. This can be seen on the low-k end of the spectrum in the plot. When you are working on data for which a good background removal is difficult, changing the spline range is one of the tricks you can pull out of your tool bag. This work is licensed under the Creative Commons Attribution-ShareAlike License. 47

48 4.4. SPLINE RANGE IN BACKGROUND REMOVAL 48 This work is licensed under the Creative Commons Attribution-ShareAlike License.

49 Chapter 5 Plotting Your Data in ATHENA Two of the main design goals of athena are to make basic data processing, i.e. background removal and Fourier transforms, as transparent as possible and to make processing of large amounts of data as seamless as processing a single data group. To this end, there are no buttons or other kinds of controls that explicitly tell athena to perform the basic processing chores. Instead, there are the plot buttons. When you click one of the plot buttons, the data processing which is required will be performed before the plot is made. For example, if you press the R button, the background will be removed from the current group and the χ(k) will be Fourier transformed to χ(r). Once all that is finished, the plot in R-space will be made. As you change the values of the parameters in the main window, athena keeps track of what has been changed and which data processing steps need to be redone. If you change the krange parameters, then press the R button again, the Fourier transform will be updated, but athena will recognize that the background removal is still up-to-date. To Do: Write document page for title, legends, single file tab. Plotting the current group The row of red buttons are used to plot the current group. The current group is the one highlighted in the group list and the one whose parameter values are displayed in the main window. The controls used to determine how the plots are displayed are described in the next section (Sec. 5.1 on the following page). 1. Clicking the E button brings the background removal up to date and plots the µ(e) data. 2. Clicking the k button brings the background removal up to date and plots the χ(k) data. 3. Clicking the R button brings the background removal and Fourier transform up to date and plots the χ(r) data. 4. Clicking the q button brings the background removal, Fourier transform, and backwards transform up to date and plots the χ(q) data. 5. Clicking the kq button brings the background removal, Fourier transform, and backwards transform 49

50 5.0.1 Right clicking on plot buttons up to date and plots the χ(k) data along with the real part of the χ(q) data. Plotting many groups The row of purple buttons are used to plot the set of marked groups. The marked groups are the ones with their purple button checked in the group list. More details about the marking groups are found elsewhere in this document (Sec. 6.2 on page 67). The controls used to determine how the plots are displayed are described in the next section (Sec. 5.1). 1. Clicking the E button brings the background removal up to date for all marked groups and plots their µ(e) data. 2. Clicking the k button brings the background removal up to date for all marked groups and plots their χ(k) data. 3. Clicking the R button brings the background removal and Fourier transform up to date for all marked groups and plots their χ(r) data. 4. Clicking the q button brings the background removal, Fourier transform, and backwards transform up to date for all marked groups and plots their χ(q) data Right clicking on plot buttons Several of the plot buttons will respond to a right click by making one of the special plots (Sec on page 55) from the Plot menu. Right click the E button button: plot µ(e) with I 0 and the signal. Right click the k button button: display the k123 plot. Right click the R button button: display the R123 plot. Right click the kq button button: display the quad plot. Right click the E button button: plot I 0 for each marked group. All other plot keys respond normally when right-clicked. The responses of the E button and the E button can be configured with the Athena right single e and Athena right marked e configuration parameters (Sec on page 145). 5.1 Plotting space tabs Plotting in energy The appearance of the plots made in E-, k-, R-, or q-space are controlled by the contents of the plot options tabs in the lower right hand corner of athena. This is highlighted in Figure 5.1 on the next page. In energy, you have the option of plotting µ(e) normalized or not and derivative or not. The red buttons on the left control how the current group is plotted. The purple buttons on the right control how marked groups are plotted. For the current group, you also have the option of plotting the background function, the pre-edge line, or the post-edge polynomial. As discussed in the normalization section (Sec. 4.1 on page 33), 50 This work is licensed under the Creative Commons Attribution-ShareAlike License.

51 CHAPTER 5. PLOTTING YOUR DATA IN ATHENA it is very helpful to examine the pre- and post-edge lines to verify that data normalization is done correctly. Figure 5.1: The plot options section with the energy tab showing. The two text entry boxes at the bottom of the tab are used to determine the extent of the data range plotted on the x-axis. Both those these numbers are relative to e0. The Plot emin and Plot emax preferences can be used to set the default plot range. See also the plot styles section (Sec. 6.4 on page 70) Plotting in k-space The plot of χ(k) is mostly determined by the value of the plotting k-weight buttons (Sec. 6.5 on page 72). The only option on the k-space tab is to make the plot as k-weighted χ(e) rather than χ(k). For the χ(e) plot, the k-axis is translated to absolute energy using the value of e0. If the window button is checked, the windowing function used to make the forward Fourier transform will be plotted along with the plot for the current group. The two text entry boxes at the bottom of the tab are used to determine the extent of the data range plotted on the x-axis. Although either number can be a negative value, there is no data below k=0. The Plot kmin and Plot kmax preferences can be used to set the default plot range. See also the plot styles section (Sec. 6.4 on page 70). Figure 5.2: The k tab. This work is licensed under the Creative Commons Attribution-ShareAlike License. 51

52 5.1.3 Plotting in R-space Plotting in R-space The plot of χ(r) is determined in part by the value of the plotting k-weight buttons (Sec. 6.5 on page 72). The options in the tab tell athena which part of the complex χ(r) to plot. For the current group, the parts are inclusive. Each selected part is plot. For the current group, you also have the option of plotting the envelope, which is the magnitude plotted in the same color as the negative magnitude. Selecting the envelope deselects the magnitude and vice versa. For marked groups, the parts are plotted exclusively and the envelope is not available. The two text entry boxes at the bottom of the tab are used to determine the extent of the data range plotted on the x-axis, behave much like the same boxes on the k tab, and have similar preferences. Figure 5.3: The R tab. When the phase correction button is clicked on, the Fourier transform for that data group will be made by subtracting the central atom phase shift. This is an incomplete phase correction in athena we know the central atom but do not necessarily have any knowledge about the scattering atom. Note that, when making a phase corrected plot, the window function in R is not corrected in any way, thus the window will not line up with the central atom phase corrected χ(r) Plotting in q-space The letter q is used to denote wavenumber of the filtered χ(k) function and to avoid confusion with unfiltered k-space. The units of q are inverse Angstroms, just as for k. The plot of χ(q) is determined in part by the value of the plotting k-weight buttons (Sec. 6.5 on page 72). The options in the tab tell athena which part of the complex χ(q) to plot. For the current group, the parts are inclusive. Each selected part is plot. For the current group, you also have the option of plotting the envelope, which is the magnitude plotted in the same color as the negative magnitude. Selecting the envelope deselects the magnitude and vice versa. For marked groups, the parts are plotted exclusively and the envelope is not available. If the window button is checked, the windowing function used to make the forward Fourier transform will be plotted along with the plot for the current group. Figure 5.4: The q tab. The two text entry boxes at the bottom of the tab are used to determine the extent of the data range plotted on the x-axis, behave much like the same boxes on the k tab, and have similar preferences. 5.2 Spectral resolution and k-range The first and second coordination shells in iron metal are at 2.49 and 2.87 Å. These closely spaced shells overlap considerably when the Fourier transform of the χ(k) data are plotted. Consequently, the iron foil data can be used to demonstrate the relationship between the Fourier transform k-range and spectral resolution. 52 This work is licensed under the Creative Commons Attribution-ShareAlike License.

53 CHAPTER 5. PLOTTING YOUR DATA IN ATHENA We see the iron foil data plotted in Figure 5.5 using three different values for kmax. The data are three identical copies of the 60K iron foil data and have had the background function removed in the same way. For the smallest value of kmax, 10 Å 1, the second shell appears only as a shoulder at about 2.5 Å. The shoulder becomes more pronounced when kmax is increased to 16 Å 1. Only when kmax is set to 22 Å 1, the entire measured data range, is the second coordination visible as a resolved peak. Figure 5.5: Iron foil data, plotted with three different k-ranges. 5.3 Stacked plots When marked group plots are made using the purple plot buttons, the default behavior is to overplot the various data groups. At times, it might be preferable to place an offset between the plots. This is done in general by setting the y-axis offset parameter. Stacking plots in a systematic manner is done using the stack tab. Stacking is done by setting the y-axis offset parameters of the marked groups sequentially. This tab contains two text entry boxes. The first is used to set the y-axis offset parameter of the first marked group. Subsequent marked groups have their y-axis offset parameters incremented by the amount of the second text entry box. Clicking the Set y-offset values button sets these values for each marked group. 5.4 Indicators Indicators are vertical lines drawn from the top to the bottom of the plot frame. They are used to draw attention to specific points in plots of your data. This can be useful for comparing specific features in different data sets or for seeing how a particular feature propagates from energy to k to q. Points to mark by indicators are chosen using the pluck buttons (Sec. 6.3 on page 70) in the indicators tab. Click on the pluck button then on a spot in the plot. That value will be inserted into the adjacent text entry box. When the Display indicators button is selected, the indicator lines will be plotted (if possible) in each subsequent plot. Points selected in energy, k, or q are plotted in any of those spaces. Points selected in R can only be plotted This work is licensed under the Creative Commons Attribution-ShareAlike License. 53

54 5.5. GROUP SPECIFIC PLOT PARAMETERS Figure 5.6: (Left) The plot stacking tab. (Right) An example of a stacked plot. Note that the stacking increment is negative so that that order of the colors is the same in the legend as in the plot. in R. Points outside the plot range are ignored. Figure 5.7: (Left) The indicator tab. (Right) An example of a plot with indicators. Note that plots made in E, k, or q will plot indicators selected in any of those three spaces. The following preferences (Sec on page 145) can be set to customize the appearance of the indicators. 1. Plot nindicators: the maximum number of indicators that can be set 2. Plot indicatorcolor: the color of the indicator line 3. Plot indicatorline: the line type of the indicator 5.5 Group specific plot parameters At the bottom of the main window are a pair of parameters which affect how that group is plotted. The plot multiplier parameter is a multiplicative factor for the group when it gets plotted. The y-axis 54 This work is licensed under the Creative Commons Attribution-ShareAlike License.

55 CHAPTER 5. PLOTTING YOUR DATA IN ATHENA offset is a number added to the group when it is plotted so that it is offset in the vertical direction. Both of these are parameters that are set for each group individually. Stacked plots (Sec. 5.3 on page 53) are made by setting the y-axis offset parameters for many groups. Like most other parameters in the main window, context menus (Sec. 7.1 on page 75) accessed by right clicking on the labels can be used to constrain these parameters across data groups. Figure 5.8: The plot parameters group in the main window. 5.6 Other plotting features Zooming and cursor position Zooming on a region of a plot is done using Gnuplot s own capabilities. In the plot window, a zoom is initiated by a right click. The mouse is then dragged to cover a rectangular area on the plot. Right-clicking a second time will cause the plot to be redisplayed on the zoomed region. Gnuplot displays the position of the cursor in the bottom part of the plot window. This is continuously updated as the mouse moves over the plot window Special plots for the current group Quad plot The quad plot is the default plot that gets made when data are first imported. Using the current set This work is licensed under the Creative Commons Attribution-ShareAlike License. 55

56 5.6.2 Special plots for the current group Figure 5.9: A number of special plots and other plotting features are provided by athena for visualizing particular aspects of your data. The plot types described below are all available from the Plot menu. of processing parameters, the data are displayed in energy, k, R, and back-transform k all in the same plot window. This plot can also be made by right-clicking on the q button. Normalized data and derivative This plot type shows the normalized µ(e) spectrum along with its derivative. The derivative spectrum is scaled by an amount that makes it display nicely along with the normalized data. 56 This work is licensed under the Creative Commons Attribution-ShareAlike License.

57 CHAPTER 5. PLOTTING YOUR DATA IN ATHENA Data + I0 + signal I 0 can be plotted along with µ(e) and the signal as shown below. The I 0 and signal channel is among the data saved in a project file (Sec. 8.2 on page 85). This example shows µ(e) of Au chloride along with the signal and I 0 channels.this plot can also be made by right-clicking on the E button. (The norm+deriv plot can be configured for right-click use with the Artemis right single e configuration parameter (Sec on page 145).) k123 plot A k123 plot is a way of visualizing the effect of k-weighting on the χ(k) spectrum. The k 1 -weighted spectrum is scaled up to be about the same size as the k 2 -weighted spectrum. Similarly, the k 3 -weighted spectrum is scaled down. This plot can also be made by right-clicking on the k button. This work is licensed under the Creative Commons Attribution-ShareAlike License. 57

58 5.6.3 Special plots for the marked groups R123 plot A R123 plot is a way of visualizing the effect of k-weighting on the χ(r) spectrum. The Fourier transform is made with k-weightings of 1, 2, and, 3. The FT of the k 1 -weighted spectrum is scaled up to be about the same size as the FT or the k 2 -weighted spectrum. Similarly, the FT of the k 3 -weighted spectrum is scaled down. The current setting in the R tab (Sec on page 52) is used to make this plot. For this figure, the magnitude setting was selected. This plot can also be made by right-clicking on the R button Special plots for the marked groups The Marked groups submenu offers two special kinds of plots relating to the set of groups in the group list that have been marked (Sec. 6.2 on page 67). Plot with E0 at 0 This special plot is used to visualize µ(e) spectra measured at different edges. Each spectrum, Cu and Fe in this example, is shifted so that its point of E 0 is displayed at 0 on the energy axis. 58 This work is licensed under the Creative Commons Attribution-ShareAlike License.

59 CHAPTER 5. PLOTTING YOUR DATA IN ATHENA Plot I0 of marked groups This plot allows examination of the I 0 signals of a set of marked groups. This plot can also be made by right-clicking on the E button. (The other two special marked groups plots can be configured for right-click use with the Artemis right marked e configuration parameter (Sec on page 145).) New feature: In version , there is an option for plotting the marked groups as normalized µ(e), but scaled by the size of the edge step. Without flattening, this is identical to plotting the µ(e) data with the pre-edge line subtracted. Otherwise, it is different in that the post-edge region will be flattened and will oscillate around the level of the edge step size Special plots for merged groups When data are merged, the standard deviation spectrum is also computed and saved in project files (Sec. 8.2 on page 85). The merged data can be plotted along with its standard deviation as shown in the merge section (Sec. 9.7 on page 95) in a couple of interesting ways. Merge + standard deviation This work is licensed under the Creative Commons Attribution-ShareAlike License. 59

60 5.6.5 Special plotting targets In this plot, the merged data are displayed along with the standard deviation. The standard deviation has been added to and subtracted from the merged data. This is the plot that is displayed by default when a merge is made. This behavior is controled by the Athena merge plot configuration parameter (Sec on page 145). Merge + variance In this plot, the standard deviation spectrum is plotted directly. It is scaled to plot nicely with the merged data. The point of this plot is to see how the variability in the data included in the merge is distributed in energy Special plotting targets The Plot menu provides a few more ways to control how your data are displayed. The Save last plot as submenu allows you to send the most recent plot to a PNG or PDF file. You will be prompted for a filename, then the most recent plot will be written to that file in the format specified. Currently, only PNG and PDF are supported. Saving to a file does not work for quad plots you ll have to rely on a screen-capture tool for that. Finally, you have the option of directing the on-screen plot to one of four terminals. The selected terminal, number 1 by default, is updated as new plots are made. When you switch to a new terminal, other active terminals will become unchanging. This means you can save a particular plot on screen while continuing to make new plots. 60 This work is licensed under the Creative Commons Attribution-ShareAlike License.

61 CHAPTER 5. PLOTTING YOUR DATA IN ATHENA To Do: Consider other file types. SVG and EPS should work. Gnuplot s GIF and JPG terminals are not sufficiently featureful to replicate all the details of athena s plots. Consider making the number of terminals a configuration parameter Phase corrected plots When the phase correction button is clicked on, the Fourier transform for that data group will be made by subtracting the central atom phase shift. This is an incomplete phase correction in athena we know the central atom but do not necessarily have any knowledge about the scattering atom. Note that, when making a phase corrected plot, the window function in R is not corrected in any way, thus the window will not line up with the central atom phase corrected χ(r). Also note that the phase correction propagates through to χ(q). While the window function will display sensibly with the central atom phase corrected χ(q), a kq plot will be somewhat less insightful because phase correction is not performed on the original χ(k) data. This work is licensed under the Creative Commons Attribution-ShareAlike License. 61

62 5.6.6 Phase corrected plots 62 This work is licensed under the Creative Commons Attribution-ShareAlike License.

63 Chapter 6 Athena s User Interface athena can be used successfully by using relatively few of its capabilities. For instance, it s fairly obvious that you can import data by opening a file using the File menu, change a parameter value by editing the number in one of the little boxes in the main window, or plot data by clicking one of the buttons labeled with the letters E, k, R, or q. There is, however, a lot more to athena at the level of its user interface. Part of making the leap from beginner to expert is learning about the various user interface features. To Do: Need chapter on contents of Monitor menu 6.1 Using the group list The group list is the primary mechanism for accessing and interacting with your data. As data files are imported in athena, each gets an entry in the group list. Data generated during the course of using athena, such as copied or merged groups, also get placed in the group list. Each group list entry consists of two parts, the label and the check button. The label contains text identifying the group. The default is for the label to be the same as the file name. Clicking with the left mouse button on a label makes that group the current group. The current group s label is highlighted with a light red color and its parameters are displayed in the main window. The current group is the one that gets plotted when the red plotting buttons are pressed. The check button is used to mark the group. Marking, explained in detail in the next section (Sec. 6.2 on page 67), is one of the fundamental user interface features in athena. Any feature of athena that involves more than one group uses the mark buttons Copying groups You can copy a group by hitting Shift - Control - y or by selecting Copy group from the Group menu. This makes an identical copy of the current group and places it at the end of the groups list. All parameters are 63

64 6.1.2 Reorganizing the group list identical and the data arrays in ifeffit are all copied only the ifeffit group name in different. Copying is very useful for examining how changes in parameter values propagate through the data processing. You can make one or more copies, change particular data values, and overplot the results. The process of comparing parameter values can be automated using the copy series tool (Sec on page 112) Reorganizing the group list When a file is imported into athena, the name of the file is used as the label in the group list. That s fine, but you can change the label by selecting Rename group from the Group menu, typing Shift - Control - l, or double clicking on an item in the group list. This posts a dialog for entering the new label for the group, shown in Figure 6.1. Figure 6.1: Renaming a group list entry. Hitting Return or clicking the OK button renames the group, shown in Figure 6.2 on the facing page. We have already seen (Sec. 4.2 on page 39) how groups can be copied. Making one or more copies is an excellent tool for exploring the effects of the various parameters in the main window. There are several other useful tools for modifying the contents of the group list. You can reorder the items in the groups list using Alt - k or Alt - j to move the current group up or down in the list. Hitting Control - k or Control - j changes the current group to the one above or below. Control -drag-and-drop (i.e. holding the Control key while clicking and dragging) can be used to move groups around in the group list. The dragged group will be placed above the group on which it is dropped. Dropping 64 This work is licensed under the Creative Commons Attribution-ShareAlike License.

65 CHAPTER 6. ATHENA S USER INTERFACE Figure 6.2: After renaming a group list entry. a group in the white space below the last group will place it at the end of the list. Items can be removed from the list. The current group or the marked groups can be removed from the project by selecting Remove group or Remove marked groups from the Group menu. You can remove all the groups from the list by selecting Close project from the File or Group menu or by hitting Control - w Information about items in the group list In the Group menu, the option for Show structure of current group displays the dialog shown in Figure 6.3 on the following page. This presents all of the parameter values of the current group as well as the contents of the data arrays associated with the group. This way of presenting the information is, admittedly, rather cryptic. But it is very useful for developing and debugging the software. If you mistakenly import a data group as the wrong record type, you can change it by selecting Change record type from the Group menu. You can only change between the various record types in energy, though. If you import a χ(k) file as µ(e) by accident, you will have to remove the group and re-import it. As of version , there is a label on the main window displaying the data type. You can toggle between µ(e) and XANES data by Control - Shift left clicking on that label. Figure 6.4: This work is licensed under the Creative Commons Attribution-ShareAlike License. 65

66 6.1.4 Using the mouse in the group list Figure 6.3: The dialog containing information about the data group Using the mouse in the group list You can turn on automated replotting when you select a new group by clicking on it in the group list. This is done by setting Athena select replot with the preferences tool (Sec on page 145). If you right click on any item in the group list, a context menu is posted, as shown in Figure 6.5, displaying the Group menu. Figure 6.5: Clicking the right mouse button on a group list entry pops up this context menu. As mentioned above, double clicking on a group list item will post the dialog for renaming that group. 66 This work is licensed under the Creative Commons Attribution-ShareAlike License.

67 CHAPTER 6. ATHENA S USER INTERFACE Shrinking and expanding the group list The last item in the plotting options tabs, labeled Shrink, causes the k-weight buttons and plot options tabs to be hidden, causing the group list to expand, and allowing the display of more data groups. When the plot options tabs is shrunk, it is replaced by a button labeled Restore plot options. Clicking this will return the k-weight buttons and the group list to their original places and the group list to its original original size. Figure 6.6: Restore the shrunken k-weight buttons and plot options tabs. 6.2 Marking groups As data are imported in athena, they are listed in the Data groups list. Each entry in the list includes the name of the data set, the text of which acts something like a hyperlink in that clicking on that text will insert the analysis parameters for that group into the main window. Each entry also has a little check button which is used for marking the group. Much of athena s functionality revolves around marked groups. For example, the marked groups are the ones plotted when a purple plotting button is pressed, merging is done on the set of marked groups and, many of the data processing and data analysis chores use the marked groups. athena offers a number of simple tools for marking or unmarking groups. These are found in the Mark menu, as shown below, and also have keyboard bindings. Shift - Control - a marks all groups, Shift - Control - u unmarks all groups, and Shift - Control - i inverts the markings such that the marked groups become unmarked and the unmarked ones become marked. The three buttons above the group list also serve to make all, mark none, and invert the marks. This work is licensed under the Creative Commons Attribution-ShareAlike License. 67

68 6.2.1 Using regular expressions to mark groups Figure 6.7: The group marking options are found in the Mark menu. Making all groups, removing all marks, or inverting all marks can be done using the mark buttons at the top of the group list Using regular expressions to mark groups There is one more tool which is considerably more powerful and flexible. In the Mark menu, this last marking tool it is called Mark regex and it is bound to Shift - Control - r. So, what does regex mean? Regex is short for regular expression, which is a somewhat formal way of saying pattern matching. When you mark regex, you will be prompted for a string in the echo area at the bottom of the athena window. This prompt is exactly like the one used to rename groups (Sec on page 64). This string is compared to the names of all the groups in the Data groups list. Those which match the string become marked and those which fail to match become unmarked. Let me give you some examples. In a project file containing various vanadium standards, the Data groups list includes These represent the various oxidation states of vanadium. The last item is an unknown sample which can be interpreted as a linear combination of the other five samples. There are two scans of each sample, as indicated by the.1 and.2. To make plots of arbitrary combinations of spectra, you can click the appropriate mark buttons on and off. Using regular expression marking is quicker and easier. I ll start with a couple simple examples. If you want to mark only the vanadium foil spectra, hit Shift - Control - r and then enter foil. To mark the V2O3 and V2O5, but none of the others, hit Shift - Control - r and enter V2. In fact, you get to use the entire power of perl s regular expression language (see the regular expression documentation at CPAN for all the details). This means you can use metacharacters symbols which represent conceptual aspects of strings. Here are a few examples: 68 This work is licensed under the Creative Commons Attribution-ShareAlike License.

69 CHAPTER 6. ATHENA S USER INTERFACE Figure 6.8: A project with several vanadium standards imported. The regular expression shown matches all strings with the number 1 at the end. Thus all groups with the.1 extension will be marked. To mark only the V2O3 and VO2 data: O[23]. That tells athena to mark the groups whose names have the letter O followed by either 2 or 3. To mark only the first scans of each sample: 1$. The $ metacharacter represents the end of a word, thus this regular expression matches all groups whose name ends in the number 1. To mark only the foil and unknown data: foil unknown. The metacharacter means or, so this regular expression matches the groups with foil or unknown in the name. Actually this regular expression could have been much shorter, both [fu] and f u would have worked in this case, given this set of group names. Regular expressions are a large and fascinating topic of study, but beyond the scope of this document. Check out the link above read Wikipedia s excellent article on regular expressions for more information. Mastering Regular Expressions by Jeffrey Freidl is a superb book on the subject. Any regular expression that works in perl will work for marking groups in athena. If you enter an invalid regular expression, athena will tell you. Regular expression marking is a wonderful tool, especially for projects containing very many data sets. Caution: The regular expression is sent exactly as entered to perl s regular expression engine. You thus have the full power of perl s regular expression engine. If you know what (?{ code }) means and do something ill-advised with it, you ll get no sympathy from me! This work is licensed under the Creative Commons Attribution-ShareAlike License. 69

70 6.3. PLUCK BUTTONS 6.3 Pluck buttons Almost every text entry box that takes an energy or wavenumber value as its parameter has a little button next to it which is decorated with a small blue X, one of which is highlighted in Figure 6.9. These are the pluck buttons and their purpose is to grab a value directly from the plot. When you click one of these buttons, a message in the echo area prompts you to select a point from the plot, demonstrated in Figure 6.10 on the next page. When you click on the plot, the x-axis value of the point you clicked on gets inserted in the associated entry box. Along with the pluck buttons in the main window, several data processing and data analysis tools use pluck buttons, as does the indicator (Sec. 5.4 on page 53) plot options tab. Figure 6.9: Using the pluck button for the upper edge of the normalization range. 6.4 Plot styles Plot styles are a mechanism for storing the contents of the plot options tabs. For example, you can save plotting parameters good for viewing XANES data and another set for viewing the full EXAFS spectrum. You can save any number of sets of parameters. When you save a set of parameters, you are prompted for a name. After that you can select a parameter set by name. These parameter sets are saved to disk, thus persist between sessions. You can discard a plot style by double clicking on it. 70 This work is licensed under the Creative Commons Attribution-ShareAlike License.

71 CHAPTER 6. ATHENA S USER INTERFACE Figure 6.10: (Left) After clicking on the pluck button, athena waits for you to click on the plot, which shows µ(e) for BaTiO 3. Only the x-axis value of the click on the plot is used by the pluck button. (Right) After clicking on the point shown in Figure 6.10, the value of about 243 is inserted as the value of the upper edge of the normalization range clearly a better value for that parameter. Figure 6.11: Plot styles controls displayed from the Plot options tabs. This work is licensed under the Creative Commons Attribution-ShareAlike License. 71

72 6.5. USING DIFFERENT K-WEIGHTS 6.5 Using different k-weights It is common practice in EXAFS to multiply χ(k) by different k-weights. That is, the χ(k) array is multiplied point-by-point by k-array. For k 1 weighted data, χ(k) at k=5 is multiplied by 5 and χ(k) at k=10 is multiplied by 10. Similarly, for k 2 weighted data, χ(k) at k=5 is multiplied by 25 and χ(k) at k=10 is multiplied by 100. This has the effect of amplifying the spectrum at the high-k end. Since the oscillations attenuate quickly after the edge, k-weighting is a way of making the high-k oscillations visible in a plot. A common approach to choosing a k-weight is to make the size of the oscillation roughly constant over the range of the data. Weighting data in that manner makes all parts of the data rage contribute equivalently. When Fourier transformed, the χ(r) spectrum is then dominated by the oscillatory structure of χ(k). The Fourier transform of an under-weighted spectrum may be dominated by a low-r peak representing the attenuation of the χ(k) spectrum. k-weighting is also used to change the emphasis of different contributions to the measured χ(k) spectrum. Low Z elements such as O and C have scattering amplitudes that peak and low-k and become quite small at high-k. Heavier elements, such as the transition metals, have small scattering amplitudes at low-k but continue to have large scattering amplitude at very high values of k. Very heavy elements, such as Pb or Sn, have minima in their scattering amplitudes around 5 to 7 Å 1. (See my presentation on the Ramsauer- Townsend effect.) By weighting χ(k) with different k-weightings, the low and high portions of the χ(k) spectrum can be differently emphasized in a Fourier transform. Doing so may help you better understand your data. The k-weighting is controlled by the bank of buttons labeled 0, 1, 2, 3, and kw, and located just beneath the purple plot buttons. This is highlighted in Figure 6.12 The buttons selected determines the k-weighting used in a plot of χ(k) data or in a Fourier transform. Figure 6.12: athena s controls for setting the amount of k-weighting in a plot or Fourier transform. 72 This work is licensed under the Creative Commons Attribution-ShareAlike License.

73 CHAPTER 6. ATHENA S USER INTERFACE The k-weight button labeled kw is used in conjunction with the arbitrary k-weight parameter. When the kw button is selected, the χ(k) data are weighted by the value of the arbitrary k-weight. This can be used in a number of ways. The simplest is if you simply want a non-integer weight. If you want to overplot two different data groups each with a different k-weight, that can be done by setting the arbitrary k-weight of each group appropriately. 6.6 Frozen groups There is a feature that athena shares with almost any other computer program not just analysis programs, but any program. Soon after starting to use athena, you will do something silly and regrettable. Often this is as simple as changing a parameter to some bad value and forgetting what the good value was. To help mitigate this sort of problem, athena allows you to freeze data groups. A frozen group is one for which you cannot change its parameter values. When a group is frozen, the entry boxes associated with parameters become deactivated, which means that it is impossible to type in them. Furthermore, any global action such as constraining parameters or using the alignment tool, will have no effect on the frozen group. The idea behind frozen groups is that, after working for a while to find parameter values that you like, you can freeze the group to avoid inadvertently altering its parameters. The various group freezing functions can be found in the Freeze menu, as shown in Figure Figure 6.13: Several visual cues indicate that a group is frozen, including the green highlighting the group list and the disabling of most controls. The frozen state of the current group can be toggled using the Freeze button or by typing Shift - Control - f. You can set the frozen state of multiple groups using the items in the Freeze menu. There you will find options for freezing or unfreezing all groups, all marked groups, or groups which match regular expressions (Sec on page 68). This work is licensed under the Creative Commons Attribution-ShareAlike License. 73

74 6.6. FROZEN GROUPS There are various visual changes when a group is frozen. The highlight color in the group list changes to light green and all the widgets on the main window become disabled. When a group is frozen, direct edits of parameter values are disallowed. Frozen groups are skipped for algorithmic edits, such as parameter constraints or alignment. You can, however, still remove a frozen group from the project. Unfreezing a group is a simple as hitting Shif - Control - f again. 74 This work is licensed under the Creative Commons Attribution-ShareAlike License.

75 Chapter 7 Setting parameters in Athena The interface for setting parameter values in the main window is quite straight forward. For most parameters, you simply type values into the appropriate text entry box. For others, you select a value from a menu. That s all fine and dandy, but imagine the situation where you have several dozen data groups imported into athena and you decide that you need to change the value of the rbkg parameter for every group. It would be extremely tedious to manually change the parameter value for each data group one by one. Fortunately there is a better way. In this chapter, we will see the various tools athena provides for constraining parameter values across data groups. We will also look in detail at how the e0 parameter is determined and how parameter defaults are set. 7.1 Constraining parameters between data groups In athena, a constraint is the setting of a parameter to be the same for two or more data groups. (That word is used in a different context in artemis.) athena gives you a high level of control over the values of the parameters used to process your data. This control is very fine-grained in the sense that every group can have its own values for any parameters, thus allowing you to customize the data processing for each individual data group. Often, however, your data groups are sufficiently similar that it is expedient to use identical values for some or all parameters. Were you forced to click through the data groups setting each parameter value for each group individually, then athena would be very tedious to use. Fortunately, there are a number of tools dedicated to the problem of constraining parameter values Constraining individual parameters The first such tool is used to constrain individual parameters. A right mouse click on any of the parameter labels on the main window will post a context menu, as shown in Figure 7.1 on the following page. The first two items in this context menu are used to set the values of this parameter for other groups to its value for the current group. The current group is, of course, the one whose values are currently displayed in 75

76 7.1.2 Constraining groups of parameters Figure 7.1: Posting a context menu for an individual parameter. the main window and the one which is highlighted in the group list. This parameter value can be applied to all groups or to the set of marked groups. The set of marked groups are the ones with their little purple buttons in the group list checked. So here we see again one of the many uses of the mark buttons. The last options involves resetting a parameter to its default value. This is handy if you have changed a parameter and found yourself in a place where the data processing is obviously wrong. By resetting the parameter to its default, you can return to a sensible place Several of the parameter context menus have a few more entries in their context menus: The Energy shift context menu has entries related to reference groups and options for displaying energy shift values for all or marked groups. The Importance context menu has entries for resetting the importance of all groups or marked groups to 1. The E0 context menu has several options for changing the value of e0. All of the options will be explained in the next section (Sec. 7.2 on the next page). The Edge step context menu as options for displaying edge step values for all or marked groups. There is also an option for approximating the uncertainty in the edge step value. When selected, the pre- and post-edge line parameters will be varied randomly a number of times. Each normalization will be plotted. The standard devaition of the edge steps will be computed and displayed in the echo area. The Fourier transform k-range context menu has an option for setting the upper bound to ifeffit s suggestion, which is based on the level of noise in the data Constraining groups of parameters 76 This work is licensed under the Creative Commons Attribution-ShareAlike License.

77 CHAPTER 7. SETTING PARAMETERS IN ATHENA In the main window, the parameters are grouped into sets of related parameters. All of the parameters associated with background removal are in one box, all the Fourier transform parameters are in another box, and so on. The labels at the top of each box are sensitive to mouse clicks much like the entry box labels. A left click posts a helpful message in the echo area, while a right click posts a context menu, as shown in Figure 7.2. Figure 7.2: Posting a context menu for a group of parameters. The various options behave much the same as in the individual parameter context menus, except that all of the parameters in the box are effected. This, then, gives you a way of constraining all background removal parameters or all Fourier transform parameters between groups. It also provides a way of restoring default values for a set of parameters Constraining all parameters The functionality which allows you to constrain parameter values between groups operates at three levels. We have seen the finest level of granularity, allowing individual parameters to be constrained. We have also seen how sets of parameters can be constrained. It is also possible to perform the same constraining operations on all parameters at once. These all-parameter operations are found in the Group menu, as shown in Figure 7.1 on the preceding page. Again, these operations work identically to the explanation above, except that every parameter is effected, with the exceptions of file and Energy shift, which would not be sensible to constrain. 7.2 Setting E0 This work is licensed under the Creative Commons Attribution-ShareAlike License. 77

78 7.2. SETTING E0 Figure 7.3: The Group menu, which contains the options for constraining all parameters at once. The e0 is central to many of the chores that athena performs. Understanding how e0 is used and how it is set is essential to understanding how athena operates and essential to using athena well. By default, athena has ifeffit determine e0 and uses the value that ifeffit finds. ifeffit s algorithm is to find the first peak of the first derivative of µ(e). To avoid settling on a spot in a noisy pre-edge, ifeffit makes a series of checks to verify that its guess for e0 comes after several points in the derivative of µ(e) that are increasing in energy and is followed by several points that are decreasing. The details of this implementation are such that ifeffit often chooses a point that is slightly to the high energy side of peak that a person would choose, but it typically is a very good guess. The actual value of e0 is used for many things. It is compared to a table of edge energies to determine the value of the Z and edge parameters. It is the energy reference for the values of the normalization, pre-edge, and spline range parameters. And it is the edge energy in the autobk algorithm. The calibration (Sec. 9.1 on page 89) and alignment (Sec. 9.2 on page 91) tools can be used to refine the values for e0. You can also edit its value directly by typing in its entry box. The right-click context menu for e0 and the Energy menu have several options for other ways of setting e0. There are a few situations where the default algorithm will fail. Very noisy data can result in a spurious identification of e0. Materials which have two inflections in the edge, such as zero-valent zirconium, might have the wrong inflection chosen. Materials with huge edge peaks, such as K 2 CrO 4, will have a point in the leading edge of the peak chosen rather than a point in the main edge. New feature: In version , features related to E 0 moved from the Group menu to the Energy menu. 78 This work is licensed under the Creative Commons Attribution-ShareAlike License.

79 CHAPTER 7. SETTING PARAMETERS IN ATHENA Other ways of setting e0 Aside from the default method described above, athena offers a few other algorithms for setting E0. Tabulated atomic value The tabulated value of the edge energy of the zero-valent element will be used. To determine the element, a transitory value for e0 will be found using ifeffit. Once Z and Edge are found, E0 is set to the tabulated value. Fraction of edge step In this algorithm, a transitory value for E 0 will be found using ifeffit. The data are normalized and the point on the edge which has a height equal to a specified fraction of the edge step is chosen as E0. This normalization is iterated up to 5 times to settle on a stable value. The value of the fraction is set by the Bkg fraction preference, which is 0.5 by default. Zero crossing Again, a transitory value for E 0 will be found using ifeffit. The second derivative of µ(e) is computed and athena searches in both directions in energy for the nearest zero-crossing of the second derivative, which is then used for e0. Peak of L edge white line A transitory value for E 0 will be found using ifeffit. The peak of the white line is then found as the zero crossing of the first derivative of µ(e) after the initial value of E 0 and is used as e0. Since all of these additional algorithms rely on ifeffit s initial guess of E0, each is subject to the same caveats given for the default algorithm. The Bkg e0 configuration parameter (Sec on page 145) can be set to one of these options, setting the default algorithm for determining E0. Submenus under the Group menu can be used to set E0 using one of these algorithms for all groups, or the set of marked groups. 7.3 Default parameter values When data is imported in athena, all parameters are set to their default values. For most data, these defaults are reasonable in the sense that using them will result in a decent first stab at background removal and Fourier transform. The sequence of choices athena makes in setting those defaults is somewhat complicated and highly configurable. By understanding how the defaults are chosen, you can tune athena to do a good job processing your more of your data without your intervention. The choices of default values for each parameter is made by walking through a hierarchy of decisions, each subsequent level overriding the previous level. The first decision is made by consulting the program preferences (Sec on page 145). The program preferences are read from two initialization files when athena starts. The first initialization file is a system-wide file that always contains athena s fresh-outof-the-box parameter defaults. The second initialization file is your own personal collection of preferences. These personal preferences are typically set using the preferences tool, which is found in Settings menu. The values found among the personal preferences will always override the system-wide set. Many of the parameter defaults which can be set in the preferences tool have the option of being set to relative values rather than absolute values. For example, the Fft kmax parameter can be set to a value such as 12. It can also be set to a value like -1, which tells athena to select the value 1 wavenumber from the end of the data as the value for Fft kmax. All of the range parameters can be set to values which are relative to the extent of the actual measured data. These options are explained in the parameter This work is licensed under the Creative Commons Attribution-ShareAlike License. 79

80 7.3. DEFAULT PARAMETER VALUES description in the preferences tool (Sec on page 145). 80 This work is licensed under the Creative Commons Attribution-ShareAlike License.

81 Chapter 8 Data export Although athena handles all of your XAS data processing chores, there are many other things you may want to do with you data, such as preparing beautiful plots for publication or importing data into artemis. This chapter explains the various kinds of output files available in athena. There are three main types of export files, each of which is explained on the following pages: Column data files useful for importing into other plotting programs Project files which capture the entire state of your current work in athena. These can be re-imported into athena, imported into artemis, or ed to your collaborator in another time zone. Report files summarizing parameter values for all the data groups in your project. These report files can be imported into spreadsheet or a database program. 8.1 Column output files After doing a lot of analysis, you will eventually need to make beautiful pictures for publication. As a glance at any of the screenshots in this document will attest, the graphical output of athena is adequate but far from beautiful. Fortunately, athena can export your data in a variety of ways and in a format that can be imported easily into almost any other program, such as a spreadsheet or a graphics package such as Origin or Kaleidegraph. The current data set the one marked in red in the group list and the one whose parameters are displayed in the main window can be saved in a number of ways. The various choices are listed under the File menu, as seen in Figure 8.1 on the next page. Note that χ(k) data can be saved with various k-weightings using the entries in the submenu. The columns in the µ(e) output file are: 1. energy 2. µ(e) 3. background 4. pre-edge line 81

82 8.1. COLUMN OUTPUT FILES Figure 8.1: Exporting a column data file for a group. 5. post-edge line 6. derivative of µ(e) 7. second derivative of µ(e) 8. I0 The columns in the norm(e) output file are: 1. energy 2. flattened µ(e) 3. flattened background 4. normalized µ(e) 5. normalized background 6. derivative of normalized µ(e) 7. second derivative of normalized µ(e) The columns in any of the χ(k) output files are: 1. k 2. unweighted χ(k) 3. k-weighted χ(k) 4. k-squared-weighted χ(k) 5. k-cubed-weighted χ(k) 6. Fourier transform window 82 This work is licensed under the Creative Commons Attribution-ShareAlike License.

83 CHAPTER 8. DATA EXPORT The χ(r) output file contains both parts of the complex Fourier transform, as well as the magnitude and phase. That is, of course, redundant, but it s also convenient. The columns are: 1. R 2. real part of χ(r) 3. imaginary part of χ(r) 4. magnitude of χ(r) 5. phase of χ(r) 6. back transform window For the sake of clarity, we use the letter q to represent Fourier filtered wavenumber. The χ(q) output file also contains both parts of the complex back transform, as well as the magnitude and phase. 1. q 2. real part of χ(q) 3. imaginary part of χ(q) 4. magnitude of χ(q) 5. phase of χ(q) 6. Fourier transform window 7. χ(k) with the k-weighting used in the FT In certain situations, it is much more convenient to write column data files containing data from many groups. This is done with the help of the mark buttons. The data from each of the marked groups can be saved in a variety of forms using the saved marked groups submenu, as shown in Figure 8.2 on the following page. The output file will contain the x-axis value (i.e. energy, k, R, or q) in the first column. The remaining columns will contain each of the marked data groups, in the order they appear in the group list. The final column output option is to export each of the marked groups as a single data column file of the sort described above. When you select one of the output file types shown in Figure 8.3 on the next page you are prompted to select a directory. Each marked group will be exported to a file in that directory with a file name formed from the group label. The standard folder selection dialog is used for exporting each marked group. Select a folder and each file will be recorded there. To Do: Show correct header what is shown below is out-of-date All of the output files discussed on this page have a header of the form shown below. The first line identifies the version of athena used to write the file. The second line identifies the type of file. The next several lines summarize all the parameters from the main window. The remaining lines are any header files recognized by athena from the original data file. This work is licensed under the Creative Commons Attribution-ShareAlike License. 83

84 8.1. COLUMN OUTPUT FILES Figure 8.2: Exporting column data files for the set of marked groups. Figure 8.3: Exporting column data files for each of the marked groups. 84 This work is licensed under the Creative Commons Attribution-ShareAlike License.

85 CHAPTER 8. DATA EXPORT # Athena data file -- Athena version # Saving fe.300 as mu(e) #. Element=Fe Edge=K # Background parameters #. E0= Eshift=0.000 Rbkg=1.000 #. Standard=0: None #. Kweight=1.0 Edge step=2.825 #. Fixed step=no Flatten=yes #. Pre-edge range: [ : ] #. Pre-edge line: * E #. Normalization range: [ : ] #. Post-edge polynomial: * E e-07 * E^2 #. Spline range: [ : ] Clamps: None/Strong # Foreward FT parameters #. Kweight=0.5 Window=kaiser-bessel Phase correction=no #. k-range: [ : ] dk=1.00 # Backward FT parameters #. R-range: [ : ] #. dr=0.00 Window=kaiser-bessel # Plotting parameters #. Multiplier=1 Y-offset=0.000 #. # XDAC V1.2 Datafile V1 # "fe.300" created on 10/4/02 at 9:37:52 AM on X-11A # ring energy= 2.58 GeV # E0= # NUM_REGIONS= 3 # RB= k # RSS= k # PP= # settling time= 0.50 # offsets= # gains= # iron foil, I0: 50N2, It:N2, 300K # Project files To Do: Save button, change indicator, update discussion of file format. The most important type of output file is the project file. A project file contains all of the data you have imported, all of the parameters associated with each data file, the content of the journal, and several other collections of important data. All of this gets saved in a single, easily transportable file. The primary purpose of the project file is to save you work. When you open a saved project file, all of the data and all of their parameters are imported into athena, returning athena to the state it was in when saved the project file. artemis ( athena s sister program intended for analysis of EXAFS data) can read these project files. Thus the project file is the best way of moving your data between the two programs. Even better, the project file is a form of collaboration. The format of the file is platform independent. A project file written on one computer can read on another computer, even if those computers use different operating systems. A project file can be burned to a CD, placed on a web site, or sent to a collaborator by This work is licensed under the Creative Commons Attribution-ShareAlike License. 85

86 8.2.1 The project file format and compatibility with older versions . To save a project file, simply select one of the File menu options highlighted in Figure 8.4. Figure 8.4: Saving a project file. The first two options saves the entire current state of athena. If the project has already been saved, the Save project option overwrites the previous file with the new state of your project. Hitting Control - s does the same thing. Clicking on the modified indicator the other highlighted region in the screenshot also saves the project. Alternately, you can select Save project as... and you will be prompted for a new file name for the project. The final option will write only the marked groups to a project file. You can think of this as a sort of sub-project file. This is another of the many ways that the group markings are used by athena. The Save button at the top of the screen will save the current project, prompting for a file name if needed. As you work with athena. this button turns increasingly red, reminding you of the need to save your work early and often. Caution: As with any software, you should save your work early and often. athena and ifeffit have their flaws. It would be a shame to discover one of them after having done a lot of unsaved work The project file format and compatibility with older versions 86 This work is licensed under the Creative Commons Attribution-ShareAlike License.

87 CHAPTER 8. DATA EXPORT The athena project file is designed to be quick and easy for athena to read. Unfortunately, the file format is not particularly human-friendly. Most of the lines of the project file are in the form written out by perl s Data::Dumper module. This freezes athena s internal data structures into perl code. When the project file is imported, these lines of perl code are evaluated. (This evaluation is performed in a Safe compartment, i.e. a memory space with restricted access to perl s system functionality. This provides a certain level of protection against project files constructed with malicious intent.) The project file is written using compression in the format of the popular gzip program using the highest level of compression, albeit without the common.gz file extension. Both athena and artemis use these files. 8.3 Parameter report files The final kind of output file is a parameter report. In the Edit menu, you will find a submenu labeled Write a report, shown in Figure 8.5. The various options in that submenu write out files containing the parameters from the main window. Figure 8.5: Writing a report on data groups in athena. The first two options in that submenu write all the parameters to an Excel file. You can choose to save parameters from all groups or only the marked groups. This work is licensed under the Creative Commons Attribution-ShareAlike License. 87

88 8.3. PARAMETER REPORT FILES Figure 8.6: An example of the Excel spreadsheet output displayed in Libre Office. 88 This work is licensed under the Creative Commons Attribution-ShareAlike License.

89 Chapter 9 Data processing athena offers a variety of data processing chores chores which modify the data or its parameters in some way to prepare it for more extensive analysis. With the exception of merging data groups, all data processing features are accesses through the Data menu, shown in Figure 9.1 on the following page. All the entries in the Data menu, replace the main window with a tool specially designed for the data processing chore. You can work on more than one data group in any tool without having to return to the main menu. Clicking on a group label in the group list will make that group current, display parameters appropriate to the data processing tool, sometimes plotting the data in some appropriate manner. When you are finished using the data processing tool, you can press the button labeled Return to the main window. Doing so will close the special tool and redisplay the main window. 9.1 Calibrating data groups Data calibration is the process of selecting a point in your data as the edge energy and applying an energy shift to your measured data so that the selected point is at a specified value. For metals, that value is usually the tabulated edge energy. When this tool in Figure 9.2 on the next page starts, the current group is plotted as the derivative of µ(e). The menu allows you plot the data as µ(e), normalized µ(e), derivative of µ(e), or second derivative of µ(e). If your data is noisy, you may find it helpful to apply smoothing. ifeffit s simple three-point smoothing algorithm is applied the number of times indicated, then the data are replotted. The selected point is shown in the plot with the orange circle, as shown in Figure 9.3 on page 91. You can type in a new value in the Reference box or click the Select a point button then click on a point in the plot. By default, the Calibrate to box contains the tabulated edge energy of the absorber measured for these data, but that too can be edited. When you plot the second derivative, the Find zero crossing button becomes enabled. This finds the zero crossing of the second derivative that is nearest to the current value of the reference point. When plotting 89

90 9.1. CALIBRATING DATA GROUPS Figure 9.1: The main menu is used to access almost all data processing functionality. Figure 9.2: This is the calibration tool. 90 This work is licensed under the Creative Commons Attribution-ShareAlike License.

91 CHAPTER 9. DATA PROCESSING Figure 9.3: As you work on calibrating your data, the current reference point is indicated by a small orange circle. the second derivative, smoothing helps, even for fairly clean data. When you click the Calibrate button, the values of E0 and Energy shift are set for the current group such that the selected point in the data takes the calibration value. 9.2 Aligning data groups Aligning data is the process of moving a data group in energy onto an absolute energy grid defined by some standard. In athena that standard is chosen fairly arbitrarily it is simply one of the other groups in the group list. The alignment is done by adjusting the Energy shift parameter. This adjustment can be done simply by manually editing the Energy shift parameter, but tools exist on the alignment tool, shown in Figure 9.4 on the next page, to make this somewhat easier. New feature: In version , a control was added to display the uncertainty in the energy shift. This value can be displayed via the context menu attached to the Energy shift label on the main page. There are several variations on how the alignment is performed and visualized. As the alignment proceeds, it can be plotted as µ(e), normalized µ(e), the derivative of µ(e) (as shown in Figure 9.5 on the following page), or the smoothed derivative of µ(e). A three-point smoothing function is applied three times to the derivative of the µ(e) if that plotting option is selected. The alignment is always done by moving the current data group and keeping the standard fixed. The standard is selected from the menu at the top of the tool. This menu contains the entire contents of the group list, excluding those groups that cannot be plotted in energy. This work is licensed under the Creative Commons Attribution-ShareAlike License. 91

92 9.2. ALIGNING DATA GROUPS Figure 9.4: The data alignment tool. Figure 9.5: As you work on aligning your data, the current data group is plotted along with the standard. This gives you visual feedback on how well your data are aligned. 92 This work is licensed under the Creative Commons Attribution-ShareAlike License.

93 CHAPTER 9. DATA PROCESSING You can perform the alignment by hand by clicking any of the buttons labeled with numbers. Those buttons will move the current group up or down in energy by the amount on the button s label. Alternately, you can type an energy shift value in the box that displays the current value of Energy shift. You can click these buttons until the data line up nicely. Clicking the Auto align button performs a simple fit in an attempt to align your data to the standard. The fit is evaluated over an energy range from 50 volts below the edge to 100 volts above. The parameters in the fit are an energy shift and an overall scaling term. The function minimized is the difference between the derivative of the standard and the derivative of the current group modified by the fitting parameters. The energy shifted data is interpolated onto the energy grid of the standard for the fit. This algorithm works quite well for data that are fairly clean and are misaligned by less than 5 or 10 volts. For noisy data, the fit may be more successful if you choose to fit smoother data by selecting that option from the menu labeled Fit as:. For very misaligned data, you may need to manually set an approximate value for Energy shift before clicking the Auto align button. You can apply the automated alignment algorithm to many groups in sequence. First mark all the groups that need to be aligned, then click the button that says Align marked groups. This may take a few minutes, depending on how many groups you have marked, but at the end hopefully all of your data will be nicely aligned. This alignment algorithm is the same as the one used by the preprocessing feature (Sec on page 30) of the column selection dialog. If you have imported a reference channel (Sec. 3.4 on page 28) with your data, you can use this tool to align the reference channels. This puts your real data on a proper absolute energy grid, which is very important for comparing edge energies in XANES studies. Caution: It is very important to align your data well. Many other parts of athena assume that you have already done a good job of aligning the data. Merging (Sec. 9.3) and linear combination fitting (Sec on page 118) are examples of this. A common approach to processing data that I use is to import a first scan and to decree that one as the standard. I will calibrate the reference channel of that first scan. That puts the reference of the first scan at its proper place on an absolute energy scale. Once that is calibrated, I will import the rest of my data from that series of measurements and also import a reference channel for each one. I will then align each of the reference channels to the reference channel of my designated standard. If the data is of high quality, I will typically use the pre-processing feature while importing all of my data. In many cases, following this procedure and trusting the automated alignment is sufficient to prepare my data for merging and further analysis. 9.3 Merging data groups Sadly, most data that we measure is, frankly, kind of crappy. A single scan typically ranges from noisy to so dominated by noise that it s hard to recognize it as oscillatory. Fortunately, the central limit theorem works every single time. If you add up enough noisy scans, it eventually turns into real data! All entries in the group list which are marked will be included in the merge. Make sure that the marked groups really are the ones you want to include in the merge! This work is licensed under the Creative Commons Attribution-ShareAlike License. 93

94 9.3. MERGING DATA GROUPS Data can be merged as µ(e), normalized µ(e), or χ(k). In most cases, it makes little difference which one you choose. χ(r) will be the same regardless. (This can be tested, in fact, I encourage you to do so.) The standard deviation in the merged data is also computed and stays with the data in project and certain output files, although athena does nothing else with the standard deviation other than plotting it, which is shown in Figure 9.7 on the next page. By default, each data set is weighted the same in the merge. Figure 9.6: The contents of the Merge menu, showing the various ways that data can merged. After a merge is made, a plot is displayed showing the merge in some manner. The type of merge plot is controled by the Athena merge plot configuration parameter (Sec on page 145). The default is to show the data along with the data ± the standard devaition, as shown below. The other options are the the variance plot (Sec on page 59) or a plot with the merge and all the data that entered the merge. The data merging feature is one of athena s most important. My typical work pattern is to carefully align the scans measured on a sample, merge them, then further work with the merged data in athena and artemis. Caution: It is essential that your data be well-aligned before merging. Merging poorly aligned data has the effect of significantly attenuating the fine structure. When merging as µ(e) or normalized µ(e), if every data group included in the merge has a reference channel, the reference channels will also be merged and these two merged spectra will be tied together as a reference channels (Sec. 3.4 on page 28). Thus the merge of the reference channels can serve as the alignment standard for the merge of the data. 94 This work is licensed under the Creative Commons Attribution-ShareAlike License.

95 CHAPTER 9. DATA PROCESSING Figure 9.7: Data merged as µ(e) plotted with its standard deviation. There is one situation where merging as µ(e) will be substantively different from the other two options. If something happens to change the values of the signals on the detectors in such a way that µ(e) for subsequent scans is of very different sizes but the normalized µ(e) data is consistent for all the data, then the merge in µ(e) will be dominated by the scans with larger absolute values while the merge in normalized µ(e) will treat all the data with similar weights. One way of having this happen is to change amplifier gains between scans. In that situation, you probably should choose to merge normalized or χ(k) data Merging options Weighting options There are three ways to weight the spectra which go into the merge. The default is to merge by the value of the importance parameter. Since the importance is by default 1, this choice usually means to weight the spectra equally in the merge. Because importance is a user-definable parameter, the weighting can be made in any way by setting those values appropriately. The other two options are attempts to weight according to quality of data. The noise option uses ifeffit s measure of noise in χ(k), thus giving more weight to data with less shot noise. The edge step uses the value of edge step determined form the normalization, thus giving more weight to data with larger edge steps. The idea for the edge step option is that, for data measured in fluorescence, a more concentrated sample has a larger edge step and is likely to give higher quality data. The choice between the three weighting options is made using the radio buttons in the Merge menu. Preferences There are preferences (Sec on page 145) which have some influence on how the merge happens. Merge exclude short data allows you to choose whether to exclude data sets with far fewer data points into the merge. The default to exclude short data sets. Merge short data margin defines how many fewer data points triggers that exclusion for a data set. Merge weightby sets the default choice of weighting option between the three options explained above Keyboard shortcuts There are keyboard shortcuts for merging: Control-shift - m : merge as µ(e) This work is licensed under the Creative Commons Attribution-ShareAlike License. 95

96 9.4. REBINNING DATA GROUPS Control-shift - n : merge as normalized µ(e) Control-shift - c : merge as χ(k) 9.4 Rebinning data groups Some beamlines offer the option of slewing the monochromator continuously from the beginning of the scan to the end. A typical implementation of this works by driving the mono at a given speed and reading the measurement channels continuously. The signal is integrated for bins of time. After each time interval, the integrate signals are stored in a buffer. At the end of the scan, the buffer is dumped to disk. At my old beamline (MRCAT, Sector 10 at the APS), a typical EXAFS scan measured in this mode takes under 3 minutes. The drawback of this measurement mode (other than the generation of tons of data that needs to be analyzed!) is that the data are vastly over sampled. The energy grid is typically 0.3 to 0.5 ev. That is fine in the edge region, but much too fine for the EXAFS region. Figure 9.8: The rebinning tool. The tool shown in Figure 9.8 allows you to specify a simple three-region grid. Typically, the pre-edge region is sparse in energy, the edge region is fine in energy, and the EXAFS region is uniform in wavenumber. The grid sizes and the energies of the boundaries are entered into their entry boxes. You can view the results of the rebinning by pressing the Plot data and rebinned data button. The Plot data and rebinned data in k button displays the two spectra as χ(k) using the background removal parameters of the unbinned data. Clicking the Make rebinned data group button performs the rebinning and makes a new group. This group gets placed in the group list and can be interacted with just like any other group. You can bulk process data by marking a number of groups and clicking the Rebin marked data and make groups button. This may take a while, depending on how many groups are being processed. 96 This work is licensed under the Creative Commons Attribution-ShareAlike License.

97 CHAPTER 9. DATA PROCESSING This deglitching algorithm is the same as the one used by the rebinning feature (Sec on page 30) of the column selection dialog. Figure 9.9: Quick scan data that have been rebinned onto a normal EXAFS energy grid. This uses a boxcar averaging to put the measured data on the chosen grid. This has the happy effect of cleaning up fairly noisy data, as you can see in Figure Deglitching and truncating data Deglitching Occasionally your data has spurious points that are obviously different from the surrounding points. These so-called glitches can be caused by a variety of issues involving the monochromator, the electronics, or the sample itself. In principle, it should not be necessary to do anything at all about glitches. A feature in the data that is only one or two points wide necessarily contributes a high frequency signal to the data. Since the data are treated using Fourier techniques, these high frequency additions to the data should have scant impact on the data. In practice, there are a variety of ways that glitches like those shown on the right in Figure 9.11 on page 99 can impact the processing of the data. Certainly, large glitches are unsightly and have an aesthetic impact on the presentation of your data. The process by which glitchy points are removed from the data is called deglitching. Yes, I also think that s a funny sounding word. athena s approach to deglitching involves simply removing the points from the data. No effort is made to interpolate from the surrounding points in an effort to replace that point with a presumably more appropriate value. The reason that no interpolation is done is that EXAFS data are typically measured on a grid that is oversampled. When the data are converted from µ(e) to χ(k) as part of the background removal, the data are rebinned onto the standard k-grid. Since a rebinning is performed later in the data processing, there is no reason to interpolate at the time of deglitching. This work is licensed under the Creative Commons Attribution-ShareAlike License. 97

98 9.5.1 Deglitching Figure 9.10: The deglitching tool. Deglitching only removes points from the data in athena s memory. The data on disk are never altered. There are two methods of deglitching offered by athena s deglitching tool, shown in Figure The first involves selecting and removing the glitches one by one. The points are selected by clicking the Choose a point button then clicking on the glitch in the plot. After clicking on the plot window, the selected point is indicated with an orange circle, as on the left of Figure 9.11 on the next page. Clicking the Remove point button removes that point from the data, shown in the bottom panel. The second method for removing glitches is more automated. In the figure above, the deglitching margins are shown by the pink lines. Those margins are drawn between the specified minimum and maximum energy values. The lines are drawn a set amount above and below the post-edge line used to normalize the data. The separation between the post-edge line and the margins is given by the value in the tolerance box. When you click the Remove glitches button, and points that within the energy range of the margins but which lie above the upper margin or below the lower margin are removed from the data. These margins can also be drawn in the pre-edge region using the pre-edge line. There is no way to use margins in an energy region that includes the edge. This technique is handy in that it quickly removes many glitches in a situation like the one shown. It is very dangerous, however, if not used with care. If the margins extend into the white line region or are so tight around the post-edge line that the oscillatory structure crosses the margins, this technique will happily remove good points from the data. Set your margins well! A useful variation of the point-by-point technique involves plotting the χ(e) data. This can only be done for glitches above the edge, but it can be a very useful technique for removing small glitches from the data. In Figure 9.12 on page 100 we see µ(e) data for U 3 O 8 that appear fine. 98 This work is licensed under the Creative Commons Attribution-ShareAlike License.

99 CHAPTER 9. DATA PROCESSING Figure 9.11: (Left) This is an example of data the needs deglitching. In this case, there was a problem with data channels not arriving at the measurement computer in the proper sequence. This timing problem resulted in occasionally spikes in the data. (Right) A point has been selected for removal. The point flagged for removal is indicated with a little orange circle. (Bottom) The selected point has been removed from the data. The deglitching margins are displayed along with the data. This work is licensed under the Creative Commons Attribution-ShareAlike License. 99

100 9.5.1 Deglitching Figure 9.12: (Left) µ(e) data for U 3 O 8 that have a tiny glitch hidden in the high energy region. (Right) Plotted as χ(k), the glitch at about 12 Å 1 in these χ(k) data is clearly seen. (Bottom) With potting as χ(e) selected. The spurious point at about 12 Å 1 has been chosen. 100 This work is licensed under the Creative Commons Attribution-ShareAlike License.

101 CHAPTER 9. DATA PROCESSING When the χ(e) is displayed, the k-weight value specified by the k-weight controls is used. From there, the point-by-point technique is identical to how it used with µ(e) data. The advantage is that small glitches might be easier to see and to pluck from the data when the data is plotted as χ(e). The point-by-point deglitching algorithm works on the χ(e) data in the same manner as for µ(e) data. Points are selected by clicking on the plot, then removed by clicking the Remove point button Truncation If your data does something odd at one end of the scan, the easiest solution might be to simply trim it away. The truncation tool allows you to chop data before or after a selected value. The radiobox is used to tell athena whether points should be trimmed from before or after the selected point. The point can be chosen by typing in the box or by using the pluck button (Sec. 6.3 on page 70). Figure 9.13: Tin oxide data with some spurious points near the end of the scan. When you select a point, it is indicated with a vertical line, as shown in Figure To remove the data before or after that line, click the Truncate data button. Sometimes the issue is not simply that the data are icky after a certain point. Sometimes your sample has elements with nearby edges, thus limiting the range over which you can actually measure the data. An example is shown in Figure 9.14 on the next page, the Ti K edge is at 4966 ev and the Ba L III edge is at 5247 ev. A careless choice of spline and normalization range will lead to a data processing disaster. Of course, truncation is not the only way of dealing with this issue. A careful choice of the spline, pre-edge, and normalization ranges is usually sufficient to treat any strange features at the beginning or end of the data set. So which is better? I think it s a matter of preference. As long as you understand what you are doing and process all your data in a consistent, defensible manner, you can use either approach. 9.6 Smoothing data Smoothing data is usually a bad idea. The best way to improve noisy data is to rethink your samle preparation or measurement procedure whenever possible. The second best way is to measure more of it and rely upon This work is licensed under the Creative Commons Attribution-ShareAlike License. 101

102 9.7. CONVOLUTING DATA GROUPS Figure 9.14: The Ti K and Ba L III edges of BaTiO 3. the central limit theorem to work its magic. Smoothing is usually little more than an aesthetic fix and it introduces distortions to your data that become serious sources of systematic uncertainty in any later attempts to interpet the smoothed data. The default smoothing algorithm is a boxcar average, implemented as a generic linear filter using a flat, symetric kernel. The width in data points of this kernel is the specified parameter. An odd kernel size is enforced. If you set the size parameter to, say, 12, a value of 13 will be used. There is an option for a Gaussian filter, which is also implemented as a generic linear filter. In this case, you must specify both the kernel size and the σ of the Gaussian. The final smoothing option is ifeffit s three-point smoothing algorithm repeatedly to your data. The number of repetitions is set using the number selection control used to set the kernel size of the other two options.. One of these days, I intend to implement a Savitsky-Golay filter. You can overplot the data and the smoothed data using the button on the left, as shown in Figure 9.15 on the facing page. The other button makes a group out of the smoothed data and places it in the group list. 9.7 Convoluting data groups This is one of athena s odder tools. It takes perfectly fine normalized µ(e) data and makes it worse by adding artificial broadening, artificial noise, or both. The broadening can be a Gaussian or a Lorentzian convolution by the selected width in energy. The noise is randomly generated using an epsilon that is chosen as a fraction of the size of the edge step. Like other tools, there is a button for plotting the data along with its modification and another for turning the modified data into a data group listed in the group list. These are shown in Figure 9.17 on page 104. An example of broadened data is shown in on the left in Figure 9.18 on page 104 and an example of data with artificial noise is shown on the right. 102 This work is licensed under the Creative Commons Attribution-ShareAlike License.

103 CHAPTER 9. DATA PROCESSING Figure 9.15: The smoothing tool. Figure 9.16: Some noisy gold oxide data that has been smoothed using the boxcar average. This work is licensed under the Creative Commons Attribution-ShareAlike License. 103

104 9.8. DECONVOLUTING DATA GROUPS Figure 9.17: The convolution tool. Figure 9.18: (Left) Iron foil data broadened by 1 ev. (Right) Iron foil data with a bit of artificial noise added. 9.8 Deconvoluting data groups 104 This work is licensed under the Creative Commons Attribution-ShareAlike License.

105 CHAPTER 9. DATA PROCESSING 9.9 Self-absorption approximations Spectral deconvolution is on athena s to do list. The statement that µ(e) measured in fluorescence is the ratio of the signals on the fluorescence and incident ion chambers is only true in the limit of very thin samples or very dilute samples. For thick, concentrated samples, the depth into which the incident beam can penetrate changes as fine structure of µ(e) changes. As the oscillatory part wiggles up, the penetration depth diminishes. As it wiggles down, the depth increases. This serves to attenuate the oscillatory structure. Ideally, all your samples that must be measured in fluorescence should be either sufficiently thin or sufficiently dilute that your data is unaffected by this self-absorption effect. Sometimes, the constraints of the sample are such that self-absorption cannot be avoided. In that case, you need to figure out what to do at the level of the data analysis to find the correct answer in the face of this problem. One solution is presented here. The self-absorption correction tool offers four different algorithms to approximate the effect of self-absorption using tables of x-ray absorption coefficients. One of them works on XANES data, while all four can be used to correct EXAFS data. One of the algorithms works well for samples that are not in the infinitely thick limit. These various algorithms are taken from the available literature and are offered to allow you to compare. The examples I show here are particularly well suited to this sort of correction. In both cases, we have a way to evaluate the success of the correction. In general, it can be difficult to guarantee the success of the correction, particularly if the entire composition of the sample is not well known. That means that, in practice, this sort of correction may not be useful or reliable. It is also important to understand that the self-absorption effect only effects the amplitude of your EXAFS data, not the phase. Thus even if you are unable to properly correct, you can still analyze your EXAFS data for bond lengths. Here is my presentation on self-absorption corrections. There I discuss the applicability of this tool in more detail. You will find that, in general, the self-absorption tool is very hard to apply to real data. There is quite a bit of useful information on this topic at XAFS.org Correcting XANES data The self-absorption tool in Figure 9.19 on the next page allows you to choose between the four algorithms and to provide the parameters of the correction. In this example of correcting XANES data, ammonium sulfate was dissolved in water at three different molarities: 0.1, 0.47, and The correction algorithm requires a complete description of the sample, so we need to determine the ratio of water to ammonium sulfate. This work is licensed under the Creative Commons Attribution-ShareAlike License. 105

106 9.9.2 Correcting EXAFS data Figure 9.19: The self-absorption tool. 1 amu = x 10^-27 kg 1 mole = x 10^23 particles 1 water molecule is 18 amu = x 10^-26 kg 1 mole of water is kg 1 liter of water = 1 kg water, so 1 liter is moles Adjusted for the density change upon adding the solute, there are about 54.8 moles of water in the solution So the formulas for these three molar solution are ((NH4)2SO4)0.10(H2O)54.8, ((NH4)2SO4)0.47(H2O)54.8, and ((NH4)2SO4)0.94(H2O)54.8. The uncorrected and corrected data for the 0.94M sample are shown in Figure 9.20 on the facing page on the right. The three uncorrected spectra are shown on the left and the corrected spectra are shown on the bottom. Thanks to Dani Haskel and Zhang Ghong for these data Correcting EXAFS data Of the four algorithms, only the Booth algorithm as shown in Figure 9.21 on page 108 is suitable for samples of finite thickness. The other three all assume that samples are infinitely thick. After selecting an algorithm, you can use the other controls to enter the incident and outgoing angles in 106 This work is licensed under the Creative Commons Attribution-ShareAlike License.

107 CHAPTER 9. DATA PROCESSING Figure 9.20: (Left) This is the 0.94M data corrected by this algorithm. (Right) Here is the raw data for the three samples. You can see the effect of self-absorption growing for the more concentrated samples. (Bottom) The corrected data. Not bad, eh? This work is licensed under the Creative Commons Attribution-ShareAlike License. 107

108 9.9.2 Correcting EXAFS data Figure 9.21: The self-absorption tool with copper data for correction using the Booth algorithm. degree and the thickness of the sample in microns. All algorithms require that you specify the formula of the sample with stoichiometries in atomic percent. These two data groups were measured from the same thin copper foil, one in transmission and the other in fluorescence. These data were provided by Corwin Booth and are the data from the paper where he and Bud Bridges presented their algorithm (citation below). Since this is a thin film, only the Booth algorithm is appropriate. (Although you might want to compare it to the other algorithms, if only to see how the others overestimate the size of the correction due to the fact that they do not consider film thickness.) The formula for copper is Cu and Corwin reports that the thickness of the sample is 4.6, the incident was 49 degrees and the outgoing angle was 41 degrees. Enter these values and plot the correction. Save the corrected data group and compare it to the transmission data, as shown in Figure 9.22 on the facing page. There are several things that can effect the comparison of the corrected fluorescence data and the transmission data. These include how the two data sets were normalized, the incident and outgoing angles, and the thickness. Try changing all those things to see how they effect the correction. New feature: The Booth algorithm has been updated and corrected. It now requires that the density of the material be provided. 108 This work is licensed under the Creative Commons Attribution-ShareAlike License.

109 CHAPTER 9. DATA PROCESSING Figure 9.22: It works pretty well. The green trace is the corrected fluorescence spectrum, which compares well to the transmission data, albeit a little too big Information depth For any sample, you can plot the information depth as a function of wavenumber. This quantity was defined by Troger et al. (citation below) and represents the depth into the sample probed by the incident beam for a given sample geometry as a function of energy. In that depth, 68 percent of the incident photons are absorbed and 68 percent of the fluorescence photons are generated. The information depth provides a useful metric for whether a film sample can be considered thick in a particular experiment. Figure 9.23: (Left) The information depth for an iron/gallium alloy, plotted in energy. (Right) The same plot, but in wavenumber Algorithm references Fluo algorithm The program documentation for Fluo can be found at Dani s web site and includes the mathematical This work is licensed under the Creative Commons Attribution-ShareAlike License. 109

110 9.10. DISPERSIVE XAS derivation: Booth Algorithm C. H. Booth and F. Bridges, Physica Scripta, T115, (2005) p. 202 (DOI: /Physica.Topical.115a00202). See also Corwin s web site: Troger Algorithm L. Troger, et al., Phys. Rev., B46:6, (1992) p (DOI: /PhysRevB ) Pfalzer Algorithm Another interesting approach to correcting self-absorption is presented in P. Pfalzer et al., Phys. Rev., B60:13, (1999) p (DOI: /PhysRevB ). This is not implemented in athena because the main result requires an integral over the solid angle subtended by the detector. This could be implemented, but the amount of solid angle subtended it is not something one typically writes in the lab notebook. If anyone is really interested in having this algorithm implemented, contact Bruce. Atoms Algorithm B. Ravel, J. Synchrotron Radiat., 8:2, (2001) p. 314 (DOI: doi: /s x). See also the documentation for Atoms at Bruce s website for more details about it s fluorescence correction calculations. Elam tables of absorption coefficients W.T. Elam, B.Ravel, and J.R. Sieber, Radiat. Phys. Chem., 63, (2002) p (DOI: /S X(01) ) 9.10 Dispersive XAS Dispersive XAS correction is on athena s to do list Multi-electron excitation removal XAS is normally thought of in terms of a single electron phenomenon. A photon goes in and a photoelectron goes out. In fact multi-body phenomena are possible and, on occasion, must be considered in the interpretation of XAS data. One such is the so-called shake-off effect in which the photoelectron has sufficient kinetic energy to excite a high-lying electron. For example, at around 415 ev above the uranium L III edge, the photoelectron can excite an N 6 or N 7 transition. The cross-section of this secondary edge can be quite small. In the example of the L III N 6,7 transition, the secondary cross section is about 3 orders of magnitude smaller than the primary L III edge. If, in this example, you have very good data with measurable EXAFS beyond about 10.5 Å 1, the multi-electron excitation will not be small compared to the L III EXAFS. Other multi-electron excitations have even larger cross-sections compared to their primary excitations. For a much more complete discussion of multi-electron excitations see Iztok Arcon s Mulielectron Photoexcitations page. Another similar phenomenon is the presence of a small impurity of the Z+1 element, leading to a small edge step well above the measured edge. In some cases this small edge step might be hard to see in your µ(e) data, but are clearly visible as a step in the χ(k) which Fourier transforms into a low-r contribution in the χ(r) spectrum. 110 This work is licensed under the Creative Commons Attribution-ShareAlike License.

111 CHAPTER 9. DATA PROCESSING athena offers two relatively simple algorithms to attempt to remove the effect of a step due to multi-electron excitations or small impurities from your data. One models the multi-electron excitation as a reflection of the data translated to the position in energy of the excitation. The other places an arctangent function at the specified energy. Be warned that the algorithm described here requires considerable user input and sufficient knowledge to properly evaluate the results. That said, let s carry on. Figure 9.24: The multi-electron excitation removal tool. Unfortunately, athena has no practical way of guessing sensible starting values for the three parameters. So it is entirely up to the user to set these appropriately. Shown below are data on which display a [3p4d]5d excitation at about 120 volts above the edge. Using the parameter shown inthe screen shot above, the removal is performed and shown as the red line in the figures. The shift was first guessed as the separation between the white line in the XANES data and the prominant feature at 5.7Å 1. That came out to be ev. After a bit of examination, I settled on 122 ev. The amplitude by which the reflected data is scaled is in this example. That number is a fraction of the edge step. That is, its value is to be compared to the normalized data. If this is set to a negative number, it will be reset to zero (which has the effect of not doing a removal). Finally, the XANES data are broadened by a couple volts. If you set this to be zero or a negative number, a value of 0.01 ev will be used. Once you find a set of parameters that does a good job of removing the excitation, the excitation-subtracted data can be saved as a group in the group list. This is a good reference on the effect of small multi-electron excitations on otherwise excellent χ(k) data: C. Hennig, Phys. Rev. B, 75, (2007) p (DOI: /PhysRevB ). This work is licensed under the Creative Commons Attribution-ShareAlike License. 111

112 9.12. COPY SERIES Figure 9.25: The results of removing the [3p4d]5d multi-electron excitation in La L III -edge data, which occurs at about 120 volts above the edge. This excitation is seen near the cursor in the energy plot. Its effect is much more pronounced in the χ(k) data on the right. See A. Kodre, et al, J Physique IV: Colloque, 4, (1994) p. C (DOI: /jp4: ). Note that this tool can also be used to approximately remove the contamination from a small edge of another element that shows up in the data Copy series This tool allows you to examine systemic trends in a measurement by varying a single processing parameter over a specified range. The Parameter menu contains many of the parameters on the main window. You give an initial value, an increment, and a number of copies, thus specifying the range over which the parameter is examine. Clicking the Make series button creates copies of the current data group with the examined parameter set incrementally. The set of copied groups are marked and plotted in the space most appropriate for the examined parameter. For parameters, line the pre- and post-edge line parameter, which affect the edge step, the average edge step value and its standard devaition are calculated and displayed in the text control that is nortmally disabled Data summation This is a little bit like the linear combination fitting (Sec on page 118) tool and a little bit like the difference spectrum (Sec on page 134) tool, but different. This tool allows you to make an arbitrary summation of µ(e), normalized µ(e), or χ(k) data. There is no requirement that the specified weights be positive or sum to one. Plots can optionally include the scaled components or the marked groups from the group list. If the summation is made on χ(k) data, the button for plotting as χ(r) will be enabled. A group can be made from the summation and inserted into the group list. That new group will be treated 112 This work is licensed under the Creative Commons Attribution-ShareAlike License.

113 CHAPTER 9. DATA PROCESSING Figure 9.26: The copy series tool. Figure 9.27: The plot made from the series of Rbkg values with the Fe foil data. This work is licensed under the Creative Commons Attribution-ShareAlike License. 113

114 9.13. DATA SUMMATION like normal data. Figure 9.28: The data summation tool. 114 This work is licensed under the Creative Commons Attribution-ShareAlike License.

115 CHAPTER 9. DATA PROCESSING Figure 9.29: A plot containing an arbitrary sum of three standards. Included in the plot is the marked group from the group list and the three standards scaled by the specified weight. This work is licensed under the Creative Commons Attribution-ShareAlike License. 115

116 9.13. DATA SUMMATION 116 This work is licensed under the Creative Commons Attribution-ShareAlike License.

117 Chapter 10 Data analysis in Athena athena provides various kinds of data analysis. None of the data analysis capabilities in athena require the use of feff. Analysis of data using feff is a huge topic and is thepurpose of the artemis program. The data analysis techniques included in athena are all purely empirical. While there is no substitute for careful, sophisticated analysis of EXAFS data using theory from feff, often the empirical techniques described in this chapter are adequate to answer the questions you have about your data. athena s analysis tools are accessed from the Analysis menu, as shown in Figure Figure 10.1: The data analysis tools in the main menu. 117

118 10.1. LINEAR COMBINATION FITTING 10.1 Linear combination fitting athena has a capability of fitting a linear combination of standard spectra to an unknown spectra. These fits can be done using normalized µ(e), derivative of µ(e), or χ(k) spectra. One use of this sort of analysis might be to interpret the kinetics of series of spectra measured during a reduction reaction. By fitting each intermediate spectrum as a linear combination of the end members, one can deduce the rate of the reaction. Another possible use would be to determine the species and quantities of standards in a heterogeneous sample. A worked example of linear combination fitting is shown later in this manual (Sec on page 153). To access this feature, choose Linear combination fit from the main menu. The normal parameter view will be replaced by the tool in Figure 10.2 for performing the linear combination fit. Figure 10.2: The linear combination fitting tool Fitting a single data group The linear combination tool presents a table of menus. Each of these menus can be used to select a spectrum from among the data groups currently in the Data groups list. The basic idea of this tool is that you will choose two or more standard spectra and fit a linear combination of them to the current (i.e. the one highlighted in pale red in the Data groups list) group. The fitting is done using the normalized µ(e) spectra. If the standards or the unknown are to be flattened, then the flattened spectrum will be used. (See the section on background removal (Sec. 4.1 on page 33) for details about flattened spectra.) You should have already done some data processing on the standards and on the unknowns. Specifically, you should align your data and set appropriate normalization parameters for each spectrum before starting to use the linear combination fitting tool. Failing to adequately prepare your data for these fits will certainly 118 This work is licensed under the Creative Commons Attribution-ShareAlike License.

119 CHAPTER 10. DATA ANALYSIS IN ATHENA result in questionable fits. To do the fit, weighting parameters are defined for each standards spectrum except for the last one in the list. The weight for the last spectrum is one minus the sum of the other weights, thus constraining the standards to be 100 percent of the unknown. Thus, if you used three standards, the first two would have weights x and y and the third would have weight 1-x-y. x and y would then be varied to best fit the data. Each standard spectrum is interpolated onto the energy grid of the unknown when the fit is performed as normalized or derivative µ(e). The fit is performed over the data range indicated by the text boxes near the top of the window. There are pluck buttons which can be used to set the fitting range by clicking on a plot of the data. Fitting normalized µ(e), derivative µ(e), or χ(k) is chosen using the radio buttons just above the table of standards. When fitting χ(k) spectra, you have the option of fitting a single spectrum to the data. When fitting normalized or derivative µ(e) spectra, you have the option of floating an E 0 for each standard independently. This is intended to fix up any inconsistencies in the energy alignment of the various spectra (although it is much better to do a good job of aligning your data before doing your linear combination fitting). These E 0 variables can be introduced by clicking on the checkbuttons in the table of standard spectra. You can introduce a linear offset to the fit to normalized µ(e) spectra. This is simple a line added to the sum of spectra in the fit. It introduces two parameters to the fit, a slope and an intercept. The line is multiplied by a step function centered at the E 0 of the unknown. Thus the linear offset is introduced only after the edge of the unknown. The purpose of this offset is to accommodate any variations in how the normalization is performed on the various spectra. To turn on the linear offset in the fit just click on the button labeled Add a linear term after e0? Caution: For best results, you should do a good job of aligning and normalizing your spectra before starting linear combination analysis. When normalization and alignment are done correctly, you can expect your fitted weights to sum to 1 and variation of E 0 for the data or standards will be unnecessary Constraints and modifications to the fit athena s linear combination tool offers several constraints to the fitting parameters. The constraints are set and unset using the checkbuttons near the bottom of the tool. Weights between 0 and 1 You can constrain the variable weights to be between 0 and 1 by clicking on the button labeled Weights between 0 and 1. In this case, each weight used is computed from the variable using this formula: guess weight_varied = 0.5 def weight = max(0, min(1, weight_varied)) The weight reported at the end of the fit, then, is the result of that formula. Note that the use of the min/max idiom means that uncertainties cannot be calculated for situations where the guess variable gets pinned to 0 or 1. That can happen in situations where one or more of the standards used in the fit is not appropriate to the data and is an indication that you should rethink the set of standards used in the fit. This work is licensed under the Creative Commons Attribution-ShareAlike License. 119

120 Fitting, statistics, reports When this option is not selected, the guessed variable itself is used as the weight in the fit and is not prevented from being negative or larger than 1. Force weights to sum to 1 You can loosen the constraint that the weights sum to 1 by deselecting the final checkbutton. This allows the final weight to float freely along with the rest rather than constrain it to equal 1 minus the sum of the rest, as described above. Loosening this constraint might yield fit results that are hard to interpret. If the constraint that weights must be between 0 and 1 is in place, then the weight of the last standard in the fit is computed by this formula: def weight_final = max(0, 1 - (w1 + w wn)) This forces the final weight to be positive, but may result in a fit that does have weights that, in fact, do not sum to one. Should that happen, it might be interpreted to mean that the normalization of the data or standards was not correct or that the choice of standards is not appropriate to the data. Constrain all standards to use a single E0 shift You can force all standards to use a single E 0 shift parameter in the fit. This is equivalent (albeit with a sign change) to fixing all the standards and using an E 0 shift on the unknown data. Adding noise to the data It is sometimes useful to check the robustness of the fit against noisy data. This is particularly true for a data set wherein some data are much noisier than others. To this end, athena allows you to add pseudo-random noise to the data before performing the fit. This is done by generating an array of psuedo-random numbers and adding this array to the data. Given that normalized µ(e) is used in lcf fits, σ (the scale of the noise) has a simple interpretation it is a fraction of the edge step. A bit of trial and error might be necessary to find a suitable level of noise for your test. For fits to χ(k), note that the noise is added to the data before k-weighting. You can examine the level of noise relative to your data before fitting by using the Plot data and sum from the actions list. Adding a linear term to the fit A line with a variable slope and offset can be added to a fit. The line is only evaluated after the E 0 value of data being fit Fitting, statistics, reports To perform the fit, click Fit from the actions list. After the fit finishes, the data and the linear combination will be plotted along with vertical bars indicating the range over which the fit was evaluated. The values of all the fitting parameters are written to the Fit results tab. Interpretation of the statistical parameters in the linear combination fit is somewhat challenging. There are two reasons for this, both of which have to do with the fact that a non-linear, least-squares minimization is used in the analysis. First, it is difficult (perhaps impossible) to quantify the number of independent measurements in the XANES spectrum. That number is certainly less than the number of data points measured. Nonetheless, when the chi-square is evaluated, the number of data points is used as the number of measurements. Second, athena has no way of evaluating a measurement uncertainty ɛ for the XANES measurement. A value of 1 is used for ɛ in the equation for chi-square. These two issues, taken together, mean that chi-square and reduced chi-square tend to be very small numbers much smaller than 1. As a result, it is impossible to use reduced chi-square to evaluate the quality of a single fit. Relative changes in chi-square between fits are probably meaningful. However, given the two 120 This work is licensed under the Creative Commons Attribution-ShareAlike License.

121 CHAPTER 10. DATA ANALYSIS IN ATHENA problems described above, chi-square does not have a very different meaning from the R-factor. The R-factor reported in the text box is sum ( (data - fit)^2 ) sum ( data^2 ) where the sums are over the data points in the fitting region. The chi-square and reduced chi-square are those reported by ifeffit. Interpretation of the statistical parameters requires you to be mindful of what you know about the system you are measuring. The statistical parameters alone are not sufficient to evaluate the fit results. The results of sample fractions must be meaningful in the context of any external knowledge you have about the system. You can replot the data and the fit using the most recent values for the fitted parameters by clicking Plot in the actions list. You can save the text from the fit results box to a file by clicking Write a report in the actions list. This writes a column data file with the fit results as the header information. The columns in the file are x-axis (either energy or k), the data, the best fit, the residual, and each of the weighted components. You can make a data group out of the linear combination by clicking Make fit group in the actions list or out of the residual by clicking Make difference group in the actions list. This will allow you to plot and manipulate the fit or difference after leaving the linear combination tool. The data group containing the fit result will be treated as normal data that can have a background removed or be Fourier transformed. When you save a fit using the derivative spectra, the fit group will be saved as a normal µ(e) spectrum. Reset in the actions list returns almost everything in the tool back to its original state. If you need more than four standards, the number of standards as well as several other aspect of the linear combination fitting is configurable using the preferences tool (Sec on page 145) Constraining linear combination fit parameters between groups The various operational parameters described above can be constrained between data groups in the same manner as background removal and Fourier transform parameters on athena s main page. Two items in the actions list are Set params, all groups and Set params, marked groups. These will export the current group s values for fitting range, noise, weights between 0 and 1, force weights to sum to 1, and use of linear term to other groups. This should probably be done before using the marked group fitting feature described in the next section Batch processing One of the choices in the actions list is to Fit marked groups. All groups marked by having their purple buttons checked will be fit in the manner described above using the current selection of fitting standards and other fitting options. When the sequence of fits is finished, the Write marked report option will become enabled in the operation list. This will allow you to write a report in the form of a comma separated value file which summarizes the results of the sequence of fits. This report file can be read into any spreadsheet program. Note that the report file will only reflect the fits done during the batch job. Any changes made to the fitting model will not be included in that report until a new batch job is performed. Also note that the only way that the batch job is different from running the same sequence of fits by hand is This work is licensed under the Creative Commons Attribution-ShareAlike License. 121

122 Combinatorial fitting using many standards that the report file can be generated. There is currently no way to generate a similar report from a sequence of fits not run using the batch processing option. However, you always have the option of saving individual fit reports as described above Combinatorial fitting using many standards One of the uses of this sort of XANES fitting is to try to figure out what s actually in a sample. One approach to figuring this out is to measure all plausible standard compounds and try fitting a large number of different combinations of the standards to the data. athena provides a tool for automating this. Here is how it works: 1. Load all of the standards that you want to consider into the table of standards in the linear combination tool. You may need to increase the maximum number of standards using the preferences tool (Sec on page 145) to provide enough space in the table for all of the standards that you wish to consider. 2. You can limit the number of standards used in each fit with the incrementer widget just below the button marked Use marked groups. By default this number is 4, which says that the fits will consider all possible binary, ternary, and quaternary combinations of standards. Increase this number to consider higher orders of combinations of standards. Decrease it to limit the number of fits to perform. You can also indicate which standards are required by clicking the check button in the right-most column of the table of standards. This will limit the combinations of standards tested against to data to those that contain the required standards, thus greatly reducing the scope of the combinatorial problem. 3. Click Fit all possible combinations in the actions list and go get a cup of coffee. If the number of possible standards is large, this series of fits could take a while. For example, with 11 standards and considering up to the quaternary combinations, athena will perform 550 fits. (Really! C C C4 11 = 550!) Once this series of fits finishes, the tab labeled Combinatorics will become active and raise to the top. In Figure 10.3 on the next page, you will see two tables. The top table concisely summarizes all the fits that were performed, in order of increasing R-factor. Initially, the first item in the list which has the lowest R-factor is selected (i.e. highlighted in pale red). The second table contains each of the standards and its weight and E 0 from the fit selected in the upper table. You can select a fit from the upper table by clicking on its line. When you do so, that fit becomes highlighted in pale red, its fitting results are inserted in the bottom table, its best fit function is plotted along with the data, and its results are inserted into the other two tabs. In this way, you can examine any fit from the series, as seen in Figure 10.4 on the facing page. Depending on the selection of standards, it is reasonable that two or more fits might have similar R-factors. You might interpret that to mean that those fits are statistically indistinguishable or you might be able to invoke some a priori knowledge to help choose between the similar fits. Other fits farther down in the list will be obviously worse both by statistical metric and by examination of their results. Clicking the right mouse button on a fit in the upper table will post a context menu with options relevant to the selected fit. These options include saving the fit as a data group; writing a data file with columns for the data, fit, residual, and each weighted standard; saving the report from the Fit results tab to a file; and writing a comma-separated-value report for the entire combinatorial sequence which can be imported into a spreadsheet program. 122 This work is licensed under the Creative Commons Attribution-ShareAlike License.

123 CHAPTER 10. DATA ANALYSIS IN ATHENA Figure 10.3: The combinatorial fitting results tab. Figure 10.4: The best fit from a combinatorial sequence. This work is licensed under the Creative Commons Attribution-ShareAlike License. 123

124 10.2. PRINCIPLE COMPONENT ANALYSIS Beneath the tables is a button labeled Write CSV report for all fits. Clicking this will prompt you for a file name and location, then write a comma-separated-value report of all fits. A worked example of linear combination fitting is shown later in this manual (Sec on page 153) Principle component analysis To Do: Document all the buttons and whatnot. Explain what useful features are still missing. Explain what PCA means, what it does, and what it does not do. Here, I have imported a project file containing well-processed data on a time series of samples in which gold chloride is being reduced to gold metal. The project file includes 8 time steps and 9 standards. I cannot stress strongly enough the importance of doing a good job of aligning and normalizing your data before embarking on PCA. This is truly a case of garbage-in/garbage-out. I then select the PCA tool from the main menu. Figure 10.5: The PCA tool. The operational concept for the PCA tool makes use of the standard Athena group selection tools. The ensemble of marked groups are used as the data on which the PCA will be performed. The selected group (i.e. the one highlighted in the group list) can be either reconstructed or target transformed. The relevant controls will be enabled or disabled depending on whether the selected group is marked (and therefore one of the data sets in the PCA) or not (and therefore a subject for target transformation). Clicking the Perform PCA button will perform normalization on all the data as needed, then perform the 124 This work is licensed under the Creative Commons Attribution-ShareAlike License.

125 CHAPTER 10. DATA ANALYSIS IN ATHENA components analysis. Upon completion, some results are printed to the text box and several buttons become enabled. After the PCA completes, a plot is made of the extracted components. This plot can be recovered by clicking the Components button under the Plots heading. The number spinner is used to restrict which components are plotted. Because the first component is often so much bigger than the rest, it is often useful to set that number to 2, in which case the first (and largest) component is left off the plot. Other plotting options include a plot of the data stack, as interpolated into the analysis range, a scree plot (i.e. the eigenvalues of the PCA) or its log, and the cumulative variance (i.e. the running sum of the eigenvalues, divided by the size of the eigenvector space). The cluster analysis plot is not yet implemented. Once the PCA has been performed, you can reconstruct your data using 1 or more of the principle components. Here, for example, is the reconstruction of an intermeidate time point using the top 3 components. Figure 10.6: (Left) The principle components of this data ensemble. (Right) PCA reconstruction Selecting one of the standards in the group list enables the target transform button. Clicking it shows the result of the transform and displays the coefficients of the transform in the smaller text box. The list of chores still undone for the PCA tool can be found at my Github site Peak fitting Peak fitting involves fitting a number of analytical line shapes to XANES data. The typical approach is to simulate the XANES data using one or two step-like functions and several peak functions for the peaks in the data. The centroids, amplitudes, and widths of the various line shapes are either fixed or varied to best fit the data. In athena s implementation of peak fitting, a Levenberg-Marquardt non-linear least-squares minimization is used. (To be specific, ifeffit s minimize command is used after constructing an array with a sum of line shapes or larch s minimize function is using an objective function which contructs an array with a sum of the line shapes.) Peak fitting is an inherently empirical analysis technique. By themselves, the line shapes used have little This work is licensed under the Creative Commons Attribution-ShareAlike License. 125

126 10.3. PEAK FITTING Figure 10.7: Performing a target transform against a data standard Figure 10.8: (Left) A successful target transform on Au foil. Au foil is certainly a constituent of the data ensemble used in the PCA. (Right) A unsuccessful target transform on Au cyanide. Au cyanide is certainly not a constituent of the data ensemble used in the PCA. 126 This work is licensed under the Creative Commons Attribution-ShareAlike License.

127 CHAPTER 10. DATA ANALYSIS IN ATHENA physical meaning. The utility of peak fitting is in quantifying the variation of certain spectral features in a sequence of data. As an example, consider the small peak that appears just before the main rising part of the edge in the perovskite PbTiO 3. In Figure on the following page, this is the peak around 4967 ev. This peak varies as a function of temperature as you approach then exceed the crystallographic phase transition. The size of the peak can be related to the amount of displacement of the Ti atom from the near-by postition of centrosymmetry. Peak fitting is a useful tool in this temperature-dependent study as it can quantify the relationship between a spectral feature and an extrinsic parameter. Figure 10.9: The peak fitting tool. Figure on the next page shows the peak fitting tool. The available line shapes when useing ifeffit include arc tangent (step-like) error function (step-like) Gaussian (peak) Lorentzian (peak) pseudo-voigt (peak) larch adds one step-like function and several peak functions: logistic (step-like) Voigt (step-like) Pearson7 (peak) Student s T (peak) An obviously useful function are not available in the current version of athena is a broadened Cromer- Lieberman calculation of the bare atomic edge step (which might better approximate the shape of the XANES data). This work is licensed under the Creative Commons Attribution-ShareAlike License. 127

128 Fitting a single data group Each line shape has an independent centroid, amplitude, and width. A few line shapes have a fourth parameter. For instance, the pseudo-voigt function has a parameter for mixing Gaussian and Lorentzian content. By default, the centroids are fixed and the other parameters are varied in the fit. The peak shapes are unit normalized. This means that the amplitude is the area under the peak. Here is the result of a fit to the PbTiO 3 after slightly tweaking the centroids of the three lineshapes from the values shown above. Figure 10.10: Fit to PbTiO 3 data measured at room temperature using an arc-tangent, a Lorentzian, and a Gaussian Fitting a single data group Figure 10.11: Choosing the lineshape to add to the model. Line shapes are added to the fitting model by clicking the buttons labeled Add step or Add peak. The functional form of the lineshape is chosen by selection from the menu to the left of those buttons. Clicking one of the Add buttons inserts a field for that lineshape in the area below the buttons. In the screenshot above, three lineshapes have been added: one arc-tangent to model the main edge step, a pseudo-voigt function to model the first pre-edge peak, and a Gaussian to model the second pre-edge peak. athena cannot know what feature in the data each line shape is intended to model. You must select the centroid of each line shape. This can be done by typing an energy value into the box labeled either Center or E 0. Alternately, you can use the pluck button to take the energy value from the plot using the mouse. When the pluck button is used, athena will make a guess for the initial value of the height of the lineshape. This is the value of the data at the position plucked for the centroid. The initial guess for the width of the line shape is 0.5 ev for peak shapes and the core-hole lifetime in ev units for the absorbing element of the data being fitted. Which parameters are fixed and which are varied are controlled by the check buttons labeled Fix next to each parameter value. By default, the centroid is fixed and the other two (or three) parameters are floated 128 This work is licensed under the Creative Commons Attribution-ShareAlike License.

129 CHAPTER 10. DATA ANALYSIS IN ATHENA in the fit. In my experience, the fits are fairly unstable when the centroids are varied, particularly with peak functions placed close together. I typically leave the centroid values fixed, adjusting them by hand and rerunning the fits if necessary. The Reset button (which becomes enabled only after a fit is performed) is used to restore parameters for each lineshape to their default values. This is handy if a fit results in strange values due to some numerical instability of the fitting model, which might happen, for example, if centroids are floated. If you wish to try a different lineshape at the same energy position, you can click on the change function hot text to post a menu of other choices for line shape. Figure 10.12: The peak fitting results tab. With ifeffit, there are only two step-like shapes. So for changing the shape of a step-like function, the hot text simply toggles between the two. Once you have set all the parameters of the fitting model, the fit is performed by clicking the Fit button in the Actions section at the top of the page. Alternately, you can examine the current state of the model without running the fit by clicking the Plot sum button The fit results tab After a fit finishes, the remaining buttons in the Actions section are enabled and the text box on the results tab is filled in with the outcome of the fit. The Plot data and fit button at the bottom of the results tab makes the same plot as the Plot sum button on the main tab. The plot can be modified to include traces for each individual line shape and for the residual of the fit by toggling the checkbuttons above the note tabs. The result of the fit can be saved to a column data file by clicking that button at the bottom of the results tab. (The same thing happens with the Save fit button on the main tab.) The output file contains the fit results in the header and has columns of 1. energy 2. the data 3. the fit 4. the residual 5. one column for each component Fitting multiple groups and the sequence tab Once you have found a fitting model that works for a representative data set, athena offers soem automation for examining an ensemble of data. The button on the main tab labeled Fit marked will apply the current fitting model to every marked group in the data list in sequence. For example, in the case of the temperature This work is licensed under the Creative Commons Attribution-ShareAlike License. 129

130 10.4. LOG-RATIO/PHASE-DIFFERENCE ANALYSIS Figure 10.13: The peak fitting results tab. dependent PbTiO 3 data measured at the Ti K edge, we see the first pre-edge peak reduces in size in the measured data as the temperature rises. Consequently, we would expect to see measured height of that peak get smaller with temperature. The results of the sequence of fits using the fitting model are shown in the Sequence tab. You can have each fit plotted during the sequence by setting the Peakfit plot during parameter. The table at the top shows the R-factor and χ 2 ν for each fit in the sequence. Selecting a row of this table by clicking on it will display the detailed results from that fit in the text box and will plot the result of that fit. athena provides a couple of ways of examining the results of the fit sequence. The list of parameters that were varied in the fit are loaded into the menu just below the text box. Selecting a parameter then clicking on the adjacent plot button will show the evolution of that parameter over the ensemble of data. Here we see the example of the height of the pseudo-voigt line shape as a function of temperature. expected, the value trends downward. As Finally, the results of the fitting sequence can be exported to a spreadsheet file for easy viewing and manipulation in a spreadsheet program, such as Excel, LibreOffice Calc, or Google Docs. This spreadsheet contains the statistics for each fit along with all the parameter values and their uncertainties Log-ratio/phase-difference analysis Log-ratio/phase-difference analysis is a purely empirical technique that can be used to determine changes in the distribution parameters of the first coordination shell for certain kinds of data. This technique is most 130 This work is licensed under the Creative Commons Attribution-ShareAlike License.

131 CHAPTER 10. DATA ANALYSIS IN ATHENA Figure 10.14: The peak fitting sequence tab. Figure 10.15: The results for peak height for the feature 4967 ev as measureed over the entire data ensemble. Figure 10.16: The results for of a fit sequence exported as a spreadsheet. This work is licensed under the Creative Commons Attribution-ShareAlike License. 131

132 10.4. LOG-RATIO/PHASE-DIFFERENCE ANALYSIS useful for data with a well-separated first coordination shell, i.e. one for which data from higher coordination shells is spectrally isolated from the first shell. An excellent example of a situation where this analysis would be useful would be a temperature series. In that case, log-ratio analysis can be used to measure the variation in σ 2 as a function of temperature and phase difference analysis can be used to measure variation in bond length. The approach of log-ratio/phase-difference analysis is to compare unknown data to a well known standard. The standard might be a room temperature measurement in the case of a temperature series. Or it might be a well ordered oxide for comparison with more disordered oxide forms. In any case, the analysis returns the differences between the standard and the unknown of the various cumulants of the distribution of atoms in the first shell. The analysis is performed by first by Fourier filtering both the data and unknown to spectrally isolate the signal from the first coordination shell. Then polynomials are fitted to the log of the ratio of the amplitudes of the χ(q) functions and to the difference of the phases of the χ(q) function. Log-Ratio(q) = ln( Amp_unknown(q) / Amp_standard(q) ) Phase-Diff(q) = Phase_unknown(q) - Phase_standard(q) These are fit using the cumulant expansion: Log-Ratio(q) = c_0 + 2*c_2 * q^2 + (2/3)*c_4 * q^4 Phase-diff(q) = 2 * c_1 * q - (4/3) * c_3 * q^3 The standard is selected from the menu at the top of this tool. The unknown is the current group, i.e. the one highlighted in the group list. There are some other caveats along with the fact that this technique requires a spectrally isolated first shell. 1. A perfectly ordered coordination shell is not necessary, but the distribution of atoms in the first shell must be well described by an expansion in a small number of cumulants. Thus, this technique may be inappropriate for highly disordered materials. 2. Although this analysis is often referred to in the literature as model independent analysis, that is as much a shortcoming as an advantage. The technique can be used to measure changes in structural cumulants, but cannot be used to measure absolute values of those cumulants. 3. This analysis cannot be performed on higher coordination shells except in the vary rare case of a second shell which is spectrally isolated both from the first shell and from all higher shells. 4. The presence of spectral weight from any higher shell or from any multiple scattering paths will add considerable systematic uncertainty to this analysis. When you select Log-Ratio from the main menu, the main window is replaced with the log-ratio/phasedifference tool, shown in Figure on the facing page. Once you select Fourier transform parameters and ranges for use in the analysis, you can click the Fit button to perform the fit. The fit to the log-ratio of the amplitudes is plotted when the fit is over. The buttons can be used to plot either the fit to the log-ratio of amplitudes or the fit to the phase difference. The fits use all cumulants up to the fourth. Depending on your data quality, choice of Fourier transform ranges can be important and quite sensitive. You can save the log-ratio and phase-difference data along with the fits to a file by clicking the Save ratio data and fit button. The three plot buttons behave just like the purple plot buttons would behave were only the standard and unknown marked. 132 This work is licensed under the Creative Commons Attribution-ShareAlike License.

133 CHAPTER 10. DATA ANALYSIS IN ATHENA Figure 10.17: The log-ratio/phase-difference tool. Figure 10.18: The results of the log-ratio/phase-difference fit to the Cu metal. This work is licensed under the Creative Commons Attribution-ShareAlike License. 133

134 10.5. DIFFERENCE SPECTRA My favorite explanation of this analysis method is Application of the Ratio Method of EXAFS Analysis to Disordered Systems, G. Bunker, Nucl. Inst. Meth., 207, (1983) p (DOI: / (83) ) Difference spectra In many situations, the trends in a sequence measured data can be indicative of the of the physical process being measured. Shown in Figure is a sequence of Pt L III spectra measured on a hydrogenated Pt catalyst. In this sequence, the hydrogen is being desorbed, resulting in measurable changes in the spectra. Figure 10.19: The dehydrogenation sequence of a Pt-bearing catalyst. Selecting one of the difference spectra options from the main menu replaces the main window with the difference tool, as shown in Figure on the facing page. Difference spectra can be computed as µ(e), normalized µ(e), and derivative or second derivative of µ(e). For difference spectra to be meaningful, it is essential that data processing be performed correctly for each data group. It is essential that you take great care with selecting parameters (Sec. 7.1 on page 75), calibrating (Sec. 9.1 on page 89), aligning (Sec. 9.2 on page 91), and all other processing chores. As you click on each group in the group list, the difference spectrum is computed as the difference between the groups selected as the standard by menu control at the top of the window and the selected group from the group list. The difference spectrum will be plotted, optionally along with the data and standard used to make the subtraction. The form of the difference spectrum µ(e), normalized µ(e), and derivative or second derivative of µ(e) is selected from the menu labeled Form. The multiplier is a scaling factor that can be applied to the standard before subtraction. If you have accidentally swapped the standard and data, click the invert button to change the order of the subtraction. You can select two points, shown in Figure on page 136 by the brown markers, and integrate the area under that part of the spectrum. The difference spectra saved to data groups. Those data groups are treated in every way like any other data group. By default, difference groups are marked as normalized groups that is, a flag is set which skips 134 This work is licensed under the Creative Commons Attribution-ShareAlike License.

135 CHAPTER 10. DATA ANALYSIS IN ATHENA Figure 10.20: The difference spectrum tool with data taken from the diff.prj demo file. the normalization algorithm. The renomralize button can be ticked to make the resulting group a normal µ(e) group. When the form of the difference is set to plain µ(e), that button will be ticked. The name of the resulting data group will be set using the Name template, which includes a mini-language of tokens that will be substituted by specific values. %d %s %f %m %n %x %a Replaced by the name of the data group. Replaced by the name of the standard group. Replaced by the form of the difference spectrum Replaced by the multiplier value Replaced by the lower bound of the integration range Replaced by the upper bound of the integration range Replaced by the compted area over the integration range The integrated areas obtained by computing a sequence over all groups marked in the group list can be plotted by clicking the button labeled Plot integrated areas for all marked groups. The reult of this shown below. This work is licensed under the Creative Commons Attribution-ShareAlike License. 135

136 10.5. DIFFERENCE SPECTRA Figure 10.21: (Left) The difference spectra between the first group in the list and the current group in the screenshot of the difference tool. (Right) The difference spectra plotted after making data groups from each one. Figure 10.22: Integrated areas for a sequence of difference spectra. 136 This work is licensed under the Creative Commons Attribution-ShareAlike License.

137 CHAPTER 10. DATA ANALYSIS IN ATHENA Uses of difference spectra Magnetic dichroism This part of athena is directly applicable to dichroism studies. The difference spectra is made in normalized µ(e) and the integration can be used to measure magnetic moments in magnetic materials. Experimental corrections Certain kinds of corrections for nonlinearities in the XAS measurement can be corrected by normalizing measured data by a blank scan that is a measurement through the same energy range using the same instrumentation, but measured without the sample in the beam path. This sort of correction, as shown in C. T. Chantler, et al., J Synchrotron Radiat., 19, (2102) p. 851 (DOI: /S ), is equivalent to a difference spectrum measured in plain µ(e) between the data and balnk scan. This work is licensed under the Creative Commons Attribution-ShareAlike License. 137

138 Uses of difference spectra 138 This work is licensed under the Creative Commons Attribution-ShareAlike License.

139 Chapter 11 Other main window chores Blah blah Figure 11.1: The main menu is used to access various features of Athena not directly related to data processing or analysis File metadata 139

140 11.2. PROJECT JOURNAL File metadata is on athena s to do list Project journal athena provides a simple yet powerful way of documentaing your work. The project journal tool provides a blank text box in which you can write whatever you want. The text from this box is saved to the project file (Sec. 8.2 on page 85). When a project file is imported into athena, any journal text will be restored to this text box. Figure 11.2: athena s journal tool. This is a good way to document your progress through a data processing or analysis chore. It is also useful for documenting the nature of your samples in a way that stays with the data. Finally, it is a way to communicate with a collaborator or boss when exchanging data via a project file File type plugins To Do: Move this page to the appropriate chapter. Also resolve issues surrounding user and system plugins.. do user plugins really exist? 140 This work is licensed under the Creative Commons Attribution-ShareAlike License.

141 CHAPTER 11. OTHER MAIN WINDOW CHORES athena uses ifeffit s read data() function to import data. This means that athena s notion of what is an acceptable data format is completely identical to ifeffit s notion. The contrapositive is also true if ifeffit can read a data file, so can athena. In practice, this works great. ifeffit is able to read the data files generated by many of the world s XAS beamlines. And so, consequently, is athena. Sadly, there are many beamlines that use a format that confounds ifeffit and athena. There are two obvious ways that I could deal with data from those beamline: 1. Refuse to deal with them and require the user to transform the data into a form that ifeffit can handle. 2. Hard-wire code into athena to deal with each new data format as I become aware of it. Neither of those are particularly user-friendly. athena instead relies on a plugin architecture allowing athena to be extended on the fly to deal well with new data formats without having to change the underlying code. This page documents the plugin architecture so that athena s users can write their own file type plugins Overview of how plugins work In simple language, a perl module is a short file containing special perl code placed in a special location. athena uses the code contained in that file to recognize and pre-process data files so that they can be imported properly using ifeffit. In somewhat more technical language, a plugin is just a perl module placed on your computer in a place where it can be found. This file is used when athena starts and its methods are available when data are imported. When a plugin is available for use, it is invoked every time a file is imported into athena using the Open file function. The new file is checked using one of the plugin s methods to ascertain if the file is of the sort serviced by the plugin. If the file is recognized, another method in the plugin transforms the original data file into a form that is readable by ifeffit. This transformation is done in a way that leaves the original data file unchanged. If the transformation is successful, the user is presented with athena s column selection dialog and can import data in the normal manner. Ideally, a plugin is written in a way that makes the import of the data into athena a completely transparent process for the user Example plugin Here is a complete example of a functional plugin taken from the horae distribution. This plugin allows athena to import files from NSLS beamline X10C. As you can see, the plugin is quite short. The following sections of this page will explain this example in detail. 1 package Demeter::Plugins::X10C; 2 3 use Moose; 4 extends Demeter::Plugins::FileType ; 5 6 has +is_binary => (default => 0); 7 has +description => (default => "NSLS beamline X10C"); 8 has +version => (default => 0.1); This work is licensed under the Creative Commons Attribution-ShareAlike License. 141

142 Namespace 9 has +metadata_ini => (default => File::Spec->catfile(File::Basename::dirname($INC} Demeter.pm }), 10 Demeter, share, xdi, x10c.ini )); sub is { 13 my ($self) 14 open D, $self->file or $self->croak("could not open ". $self->file. " as data (X10C)\n"); 15 my $first = <D>; 16 close D, return 0 unless (uc($first) =~ /^EXAFS/); 17 my $lines = 0; 18 while (<D>) { 19 close D, return 1 if (uc($first) =~ /^\s+data START/); 20 ++$lines; 21 }; 22 close D; 23 }; sub fix { 27 my ($self) 28 my $new = File::Spec->catfile($self->stash_folder, $self->filename); 29 ($new = File::Spec->catfile($self->stash_folder, "toss")) if (length($new) > 127); 30 open D, $self->file or die "could not open ", $self->file. " as data (fix in X10C)\n"; 31 open N, ">".$new or die "could not write to $new (fix in X10C)\n"; 32 my $header = 1; 33 my $null = chr(0). + ; 34 while (<D>) { 35 $_ =~ s/$null//g; # clean up nulls 36 print N "# ". $_ if $header; # comment headers 37 ($header = 0), next if (uc($_) =~ /^\s+data START/); 38 next if ($header); 39 $_ =~ s/([ee][-+]\d{1,2})-/$1 -/g; # clean up 5th column 40 print N $_; 41 }; 42 close N; 43 close D; 44 $self->fixed($new); 45 return $new; sub suggest { 49 my ($self, $which) 50 $which = transmission ; 51 if ($which eq transmission ) { 52 return (energy => $1, 53 numerator => $4, 54 denominator => $6, 55 ln => 1,); 56 else { 57 return (); 58 }; 59 }; PACKAGE ->meta->make_immutable; 63 1; Namespace The module must be in a particular namespace. The namespace is defined by the package function on line 1 of the example. The package must be below the Demeter::Plugins namespace and should have a name that is descriptive of what format it is made for. In the case of the example, the plugin is intended to transform files from NSLS beamline X10C, so the full namespace of the module is Demeter::Plugins::X10C. Lines 3, 4, 62, and 63 are some requisite boilerplate which allow this module to work properly with demeter and athena Required methods and variables 142 This work is licensed under the Creative Commons Attribution-ShareAlike License.

143 CHAPTER 11. OTHER MAIN WINDOW CHORES The plugin must supply three methods and must set several attributes of the Plugin object required attributes Lines define the two required variables in a way that allows them to be accessed outside the scope of this module. is binary (Line 6) A boolean that tells athena whether the input file format is in a text or binary format. athena handles binary files slightly differently in the column selection dialog. description (Line 7) A short text string describing the purpose of this plugin. This string will be displayed in the plugin registry. This description should be no more than a few dozen characters. version (Line 8) This is a numeric version of the plugin. metadata ini To Do: (Line 9) Document this attribute once the meta data system is fleshed out the is method Lines show the is method. This method is called by athena to try to recognize an input data file as being of a particular format. In the case of this example, the X10C file is recognized by some of the text in the first few lines of the files. When the file is recognized, this method returns a true value. If the test fails, it returns 0. When athena sees the true return value, it applies the fix method to transform the data file into an ifeffit-friendly format. It is quite important that the is method be fast. It is possible that a data file will have to be tested against a large number of plugins. If the is method is slow, file import will be slow the fix method Lines show the fix method. This method is called when the is method returns true. In some manner it makes a copy of the original data file and transforms that copy into a form that can be read by ifeffit. This method needs to follow a number of strict rules, however within those rules there is a lot of flexibility about how the transformation is accomplished and the scope of what that transformation does to the data. First and most important, never alter the original data! Either work on the contaents of the original file in memory or make a copy of the data, preferably in the stash folder (a folder known to demeter as a place for writing scratch files). At line 29, we see that file is opened in the stash folder for holding the transformed data. As t he data is processed, the output is written to that file (see lines 36 and 40). Do whatever chore needs doing to transform the portion of the original data file that needs attention. Afterwords close both the input and output files. It is esential that the files be closed, particularly on Windows, which locks opened files from other uses. This work is licensed under the Creative Commons Attribution-ShareAlike License. 143

144 the suggest method Finally set the fixed attribute of the object to the path and name of the transformed file and return that same string. In the example given on this page, the first thing the fix method does is to create a file name in the stash directory for the transformed file. Line 28 tells athena to give the stash file the same name as the original file (before calling this method, athena sets the filename attribute appropriately) but in the stash directory (the catfile method builds a fully resolved filename in a platform transparent manner). Line 29 checks the length of the fully resolved filename to avoid running into one of ifeffit s internal limitations. Three things are done to transform an X10C file. The header is stripped of null characters, the header is commented out by putting # characters in the first column, and a formatting problem in some files involving a lack of white space between columns is resolved. Each line of the original file is read, operated on, and written to the transformed file in the stash directory. The while loop starting at line 34 reads through the file line-by-line and performs the operations. Lines 42 and 43 close the original and new file handles. The filter should always close the file handles. This is not such a huge issue under unix, but Windows places a lock on any open file handle. If you fail to close one, for as long as athena is running no other process will be able to do anything with that file. At line 45, the method returns with the fully resolved name of the transformed file. At no point was the original file altered. When athena exits, it will clean up the stash directory, thus avoiding a pile up of unnecessary data files. demeter ships with a number of differnt kinds of plugins. Some of them perform simple, linear transofrmations (like this one). Others interpret binary data. A couple export project files rather than data files. One even performs an on-the-fly deadtime correction for data from an energy dispersive detector. Examine them for hints about how to create your own plugins the suggest method Lines show the suggest method. This provides feedback for use by the column selection dialog (Sec. 3.1 on page 21) is selecting initial guesses for the columns containing the numerator and denominator of the data. In this case, the method suggests columns for transmission data butmakes no suggestions of fluorescence data Athena s plugin registry Because there might be a large number of file type plugins, it is possible for the user to turn the checks for the file types on and off. In the Settings menu, you will find the Plugin Registry. This is a simple list of all plugins found in the system and user directories. The check buttons enable and disable the plugins. The value of the variable is displayed in the list (so be sure to choose a suitable and suitably short value for that variable). Note that the order in which the plugins are displayed in Figure 11.3 on the next page is the same order in which files are checked against the plugins. User plugins are checked before system plugins. After that the plugins are ordered alphabetically. If you want your system plugins to be checked against the data first, choose a name that comes early in the alphabetical sense. Right-clicking on an item in the registry posts the context menu shown in the figure above. All such context menus have at least one item for reading the documentation contained in the plugin source code file. Some plugins, such as the one shown, also provide a way of configuring the behavior of the plugin. 144 This work is licensed under the Creative Commons Attribution-ShareAlike License.

145 CHAPTER 11. OTHER MAIN WINDOW CHORES Figure 11.3: athena s plugin registry System plugins and user plugins athena looks in two different places for these plugins. One place is in athena s installation location where it finds the plugins that come with the horae distribution. The other is in the user s space (on Windows plugins are located in C:\Program File\Ifeffit\horae\Ifeffit\Plugins\Filetype\Athena\, on unix $HOME/.horae/Ifeffit/Plugins/Filetype/Athena/ ). In both places, it reads the contents of the plugin directory and attempts to import the files which end in.pm Miscellaneous advice on plugins 1. Cut-n-paste is an excellent way to get started on a new plugin. Make a copy of a plugin for a file that is similar to your own file and use that as the basis for your new plugin. 2. X15B.pm is an example of a plugin for a binary format. 3. You can use any module that you need, thus you have all of CPAN available to you when designing your plugin. If you need to do any seriously heavy lifting, check out the Math::Pari module or the Perl Data Language 4. Although a well-tested, robust plugin should be your goal, one of the nice features of the plugin architecture is that a good-enough plugin is easy to write and can quickly get you over a hurdle Setting user preferences athena allows you to set an enormous number of preferences. Many dozens of things that could conceivably be configured can, in fact, be configured using this tool. In any situation where is was not obvious to me that there was a best, most proper value for a parameter, I chose a default and made an entry for it in the This work is licensed under the Creative Commons Attribution-ShareAlike License. 145

146 11.4. SETTING USER PREFERENCES preference tool. The preference tool is shown in Figure Figure 11.4: athena s preferences tool. I am not going to explain this tool in great detail. I am trusting that if you are sufficiently motivated to configure the behavior of athena to be something other than what comes out of the box, you will also be sufficiently motivated to follow your nose through the use of this tool. The preference parameters are divided into related groups. For example, there are groups for background removal parameters, alignment parameters, colors, and so on. To view a group of preferences, click on the little cross sign next to the group s name in the list on the left side of the tool. This will open a branch containing all the parameters in tat group. Click on one of them and it will be displayed in the controls on the left. Click on the default button to restore athena s default value or use the control below the default button to set a new value. That control will vary depending on the type of parameter. A text or numeric parameter will offer an entry box. A color parameter will offer a button which pops up a color selection dialog. A list parameter will offer a menu with the choices. And so on. The text area below these controls displays an explanation of the function served by that preference. Underneath that are buttons for setting or saving the parameters. Various configuration files, including the master configuration file demeter.ini and others, are stored in user space. On linux (and other unixes) this is $HOME/.horae/. On Windows this is %APPDATA%\demeter. 146 This work is licensed under the Creative Commons Attribution-ShareAlike License.

147 Chapter 12 Worked examples This chapter presents two fleshed-out examples of performing specific chores with athena. The data can be found at my Github site. Basic data processing This example walks through the import and processing of several data files measured on an iron foil. Data calibration and alignment, parameter constraint, and merging are demonstrated in this example. Linear combination analysis Using data measured on a variety of gold standards and a sequence of data measured on a system of cyanobacteria chemically reducing gold chloride to metallic gold Basic data processing This worked example will walk you through data import, demonstrate calibration, alignment, and merging of data, and consider well chosen parameter values for background removal and Fourier transform. This example uses data collected on an iron foil at three temperatures. To begin, import (Sec. 3.1 on page 21) the first scan at 60K, fe.060. This is a relatively simple data file containing columns for energy and the signals on the I0 and It detectors. Select columns to form µ(e) data as shown in Figure 12.1 on the following page. When I collected these data, I purposefully miscalibrated the monochromator so that I would have a data set for explaining the use of athena s calibration tool. The first thing to do, then, is to correctly calibrate these data. Open the calibration tool (Sec. 9.1 on page 89) by selecting Calibrate energies from the Data menu. The derivative of µ(e) for these data will be plotted, shown in Figure 12.2 on the following page on the left. The choice of edge position, denoted by the little orange circle, is reasonable in that it is close to the first peak of the first derivative, as one expects. The monochromator calibration is obviously wrong as the orange circle is at ev, while the tabulated value for the iron K edge is 7112 ev. We want to select the peak of the first derivative and set that point to 7112 ev. We can simply use the 147

148 12.1. BASIC DATA PROCESSING Figure 12.1: The column selection dialog with columns chosen correctly for the iron foil data. Figure 12.2: The iron foil data, as plotted in the calibration tool. (Left) Derivative of µ(e). (Right) Second derivative of µ(e). 148 This work is licensed under the Creative Commons Attribution-ShareAlike License.

149 CHAPTER 12. WORKED EXAMPLES currently selected point it is quite close to the peak. Alternately, we can click the Select a point button and try to click on the plot, selecting point even closer to the peak. To do that, it would be helpful to change the value of emin and emax in the energy plot tab (Sec. 5.1 on page 50) the replot the data such that a tighter region around the peak is displayed. A third, highly accurate way of finding the exact peak of the first derivative is to plot the second derivative of the data by selecting second deriv from the display menu. The second derivative of the data along with the currently selected value of edge position are shown on the right of Figure 12.2 on the facing page. With the second derivative selected for display, the Find zero-crossing button becomes activated. clicking that button will cause athena to search in both directions for the nearest energy value that hits the y=0 axis and select that as the new edge position. The value should be about ev. Click the Calibrate button and return to the main window. You will notice two things once the main window is displayed again: the value of E0 is now 7112 and the value of the eshift parameter is now about 6.7. In athena, calibration works by simultaneously setting those two parameters such that the selected point has the chosen energy value. Now, import the second scan at 60K, fe.061. Mark (Sec. 6.2 on page 67) both groups by clicking on their little purple buttons and plot them in energy by clicking on the E button. The upper left of Figure 12.3 on the following page shows that these data are not aligned. Since they are successive scans on the same iron foil under the same experimental conditions, we expect these data to be identical within statistical noise. The reason that they are different is that the second scan has not yet been calibrated. Fixing this requires two steps. First, open the alignment tool (Sec. 9.2 on page 91) by selecting Align scans from the Data menu. The two scans are plotted as the derivative of µ(e). The first scan in the list, fe.060, is automatically selected in the Standard menu. The second scan is highlighted in orange in the groups list and is displayed as the Other. These are very clean data, so the automatic alignment algorithm should work well. Click the Auto align button. If you data is noisy, the automated alignment might not work well, in which case you can use the other buttons to adjust the energy shift until you are satisfied that the data are well aligned. Returning to the main menu, we find that the eshift parameter for fe.061 is now about 6.7 ev. When plotted together in energy, the data are well aligned. However when plotted together in k by pressing the k button, there remains a problem, as we see in the lower left of Figure 12.3 on the following page. The fe.061 data have been aligned, but not calibrated. That is, its E0 parameter has not been set to the same value as for the fe.060 data. Consequently, the position in the data where k=0 is different for the two spectra and the χ(k) data from the background removal are different. To correct this, you can either enter the value for E0 from fe ev into the E0 text entry box after clicking on fe.061 in the group list. Alternately, you can select fe.060 in the group list, then right click on the E0 parameter to raise its context menu (Sec on page 75) and select Set all groups to this value of E0. Once the E0 parameters are set the same for these data sets, we see in Figure 12.3 on the following page in the lower right that the data are quite consistent between these two scans. Now we need to import the remaining data measured on the iron foil. Using the file selection dialog, select the remaining data files as described in the section on multiple file import (Sec. 3.3 on page 26) and shown in Figure 12.4 on the following page. Clicking the Open button will import all those data files and list them in the group list. Once they are This work is licensed under the Creative Commons Attribution-ShareAlike License. 149

150 12.1. BASIC DATA PROCESSING Figure 12.3: (Upper left) Misaligned iron foil µ(e) data. (Upper right) The derivatives of the misaligned data, as plotted in the alignment tool. (Lower left) Aligned data plotted in k, but with E0 unconstrained. (Lower right) Aligned data plotted in k after constraining E0. Once aligned and constrained in E0, these successive scans are quite consistent. Figure 12.4: Importing the remaining iron foil data. 150 This work is licensed under the Creative Commons Attribution-ShareAlike License.

151 CHAPTER 12. WORKED EXAMPLES imported, mark (Sec. 6.2 on page 67) all of the groups either by typing Shift - Control - a or by clicking the A mark button above the group list. Finally select the fe.060 group by clicking on it in the group list. Once you have done all of that, athena will look like Figure Figure 12.5: All of the iron foil data have been imported and marked. At this point, only fe.061 has been aligned to fe.060 and had its value of E0 properly constrained. We need to do so for the remaining data groups. Processing all 5 of the remaining data groups would be quite tedious if we had to handle each one individually. Fortunately athena has lots of tools to help process large quantities of data. To align (Sec. 9.4 on page 92) the remaining data to fe.060, choose Align data from the Data menu. athena chooses the first item in the group list as the data alignment standard and selects the second group as the one to align. These selections are shown at the top of Figure 12.6 on the following page. Of course, fe.061 has already be aligned. If you select any other group by clicking on it in the group list, you will see that it it is not yet aligned. You can align the remaining groups by selecting each on in turn and clicking the Auto align button but that seems tedious. Much better to click the Align marked groups button. Since all the groups are aligned, the automated alignment algorithm will be applied to each one in turn. Once finished, you can click on groups to check on the quality of the alignment. Since these are very good data, the automated alignment should have worked well. Click on the Return to the main window button to continue with the data processing. Each of the data groups has now been aligned, but only fe.061 has the same value of E0 as fe.060. Again, clicking through the groups list and editing the E0 values seems horribly tedious. Here we see the true value of the Set all groups to this value of E0 in the E0 context menu (Sec on page 75). This work is licensed under the Creative Commons Attribution-ShareAlike License. 151

152 12.1. BASIC DATA PROCESSING Figure 12.6: All of the iron foil data are marked and waiting to be aligned. The χ(k) data for the aligned and constrained data are shown in Figure Figure 12.7: The χ(k) spectra for all the iron foil data. There is another, perhaps quicker, way of doing everything that is described above. To start, import the fe.060 data and calibrate it as explained at the start of this section. Then use the file selection dialog to select all of the remaining data. Click to the Preprocess tab, select the fe.060 data as the standard, then click the Mark, Align, and Set parameters buttons. Now click the Open button. As the remaining data are imported, the alignment and E0 constraint will 152 This work is licensed under the Creative Commons Attribution-ShareAlike License.

153 CHAPTER 12. WORKED EXAMPLES Figure 12.8: Using the preprocessing features of the column selection dialog to align and constrain data on the fly as it is imported. happen on the fly and the new group will be marked. Once the file selection dialog using these preprocessing features is finished, athena should look just like it did in Figure 12.5 on page 151. As a final chore in this section, we will merge (Sec. 9.3 on page 93) the data measured at each temperature. Since the data are properly aligned and calibrated, this is a fine time to perform the merge. First mark each data group that should be merged together. As we see in Figure 12.9 on the next page, the two groups measured at 300K are marked. Select Merge marked data in mu(e) from the Merge menu. This will perform the merge then insert a new group in the group list. Then select Change group label from the Group menu or type Shift - Control - l to give the merged group a more suggestive name. Repeat this process for the data at each temperature. Now you are ready to begin analysis on the iron foil data! 12.2 Linear combination analysis To Do: Update excel figure and sequence figure once fit seq. bug is fixed in Athena. This section outlines the linear combination fitting analysis of an experiment to study the kinetics of the reduction of aqueous Au 3+ chloride to metallic gold. The experiment is described and these data are presented in Mechanisms of Gold Bioaccumulation by Filamentous Cyanobacteria from Gold(III)-Chloride Complex, M.F. Lengke, B. Ravel, M.E. Fleet, G. Wanger, R.A. Gordon, G. Southam, Environ. Sci. Technol., 40:20, (2006) p (DOI: /es061040r). The experiment probed the mechanism of bioaccumulation of gold by the interaction of a model cyanobacterium (Plectonema boryanum UTEX 485) with aqueous Au 3+ chloride. This resembles a common subsurface environment associated with gold deposits in various locations around the world. In those environments, Au 3+ chloride bearing fluids rise from the deep subsurface and wash over bacterial mats. The bacteria die This work is licensed under the Creative Commons Attribution-ShareAlike License. 153

154 Examining the data Figure 12.9: Merging the data at each temperature and renaming the merged groups. but their remains interact chemically, reducing metallic gold from the fluid. In our experiment, a culture of P. boryanum was sampled and placed in a Teflon fluid cell appropriate for an XAS measurement. An aliquot of Au 3+ chloride solution was titrated into the fluid cell and we exited the hutch as quickly as possible. Overnight, we measured XAS scans continuously. In the morning we set the sample aside, remeasuring it every few hours until the end of the experiment. Finally we measured a similar sample that had been prepared a week earlier. in this way, we had a time sequence tracking the nearly complete reduction of Au 3+ chloride to some form of colloidal gold. (The gold is known to be colloidal from TEM measurements, we could not distinguish colloidal and bulk gold in our XAS measurements.) The data files can be found on the web with the html version of this document Examining the data Import the athena project file containing the gold standards and gold/cyanobacteria data. You will see that it contains a subset of the reduction sequence, including data data from 0.12 hours through 1 week. Below the cyanobacteria data are several gold standards. Note that these data have all been carefully calibrated, aligned, and merged. Each measurement was made using a gold foil as an alignment reference (Sec. 3.4 on page 28). Figure on the next page shows the sequence of data measured on the cyanobacteria on the left and a variety of gold standards on the right. The plot on the left also shows the starting material, aqueous Au 3+ chloride, and the end product, metallic gold. The data clearly show the transformation over time between these two end members. In particular, note the reduction of the white line intensity at about ev and the growth of the peak at about ev which is characteristic of the metallic gold spectrum. 154 This work is licensed under the Creative Commons Attribution-ShareAlike License.

155 CHAPTER 12. WORKED EXAMPLES Figure 12.10: (Left) The sequence of measurements from 0.12 through 720 hours. The top-most trace shows the starting material,aqueous Au 3+ chloride. The bottom trace shows the end product, metallic gold. (Right) All of the standards contained in the project file. The purpose of this experiment is two-fold. One goal is to determine the reaction kinetics of the reduction. To that end, we will assume that the data are a linear combination of aqueous Au 3+ chloride and metallic gold and measure their relative fractions as a function of time. The second goal is to determine whether the reduction involves an intermediate state and, if so, to identify that species. Our strategy to answer that question will involve adding other standard compound to our mixture of aqueous Au 3+ chloride and metallic gold to see if the data are better described by a ternary rather than binary mixture of standard materials. To begin, select one of the time points in the group list. Most figures in this section show the data measured at 7.03 hours. Next, select Linear combination fit from the main menu. This replaces the main window with the linear combination fitting tool and plots the data along with vertical lines indicating the extent of the fitting range. From the first two drop-down menus, select Au foil and Au3 Cl aq, as shown in Figure 10.2 on page 118. In the operations list, click on Fit this group to perform the initial fit to these data. After the fit finishes, the result of the fit, shown in Figure on the next page is plotted. The tab labeled Fit results becomes active. Clicking on it, we see that the fit tells us that the data are 51±1 percent metallic gold. Given the quality of the fit, it seems that we are well justified in our assumption that these data can be modeled by a simple linear combination of the end members Improving the fit As nice as this quick and easy result is, it s not perfect. A close examination of the plot in Figure on the following page shows quite a bit of misfit throughout the entire fitting range. (Note that you can examine the misfit by clicking the Plot difference button and replotting the data by clicking Plot data + sum in the operations list.) This misfit suggests that our hypothesis of an intermediate state between Au 3+ chloride and metallic gold may be valid. As a first guess for what that intermediate state might be, I think should be something without a strong white line. The fit in the region of the white line is pretty good. Looking at the various standards on the right side of Figure I suspect that the sulfur ligated species, Au sulfide, Au thiosulfate, or Au thiomalate, are This work is licensed under the Creative Commons Attribution-ShareAlike License. 155

156 Improving the fit Figure 12.11: athena s linear combination fitting tool with the end member standard compounds selected for the initial fit. Figure 12.12: The result of the initial fit to the 7.03 hour data using the end members as the fitting standards. 156 This work is licensed under the Creative Commons Attribution-ShareAlike License.

157 CHAPTER 12. WORKED EXAMPLES likely candidates. To test one, we need to add it to the list of fitting standards on the Standards spectra tab and rerun the fit. In the third row, select Au sulfide from the drop-down menu, then click Fit this group from the operations list. Figure 12.13: The result of the fit to the 7.03 hour data using the end members along with gold sulfide. This is a noticeably better fit. The amount of misfit throughout the fitting range and especially in the peak at about ev is smaller. Examining the results tab, we see that the amount of Au 3+ chloride is about the same as before but that the metallic gold content is only 34±2 percent, with the sulfide taking up the remaining 18±2 percent Understanding the fit The fit including the sulfide certainly looks better, but is it? The results tab also reports some simple statistics from the fit. The R-factor a measure of mean square sum of the misfit at each data point was for the two-standard fit and shrank by a factor of 2 to for the three-standard fit. That confirms the observation that the degree of misfit seems smaller in the plot of the three-standard fit. The reduced χ 2 of the fit also reduced by about a factor of two, from to , suggesting a substantive improvement in the fit quality. Those are strange numbers, though. Any textbook on scientific statistics will tell us that a good fit using a non-linear, least-squares minimization (such as that used by ifeffit and athena) should give 1 for a fit in which the model is a good representation of the data. That is certainly true, but supposes that you have a good determination of the measurement uncertainty. We don t. In principle, the standard deviation spectrum from the merge of measured data (Sec. 9.3 on page 93) could be used as an approximation of the measurement uncertainty, but that is not possible in this case. The data at 7.03 hours are a single measurement from a time sequence. There is nothing to merge because each measurement is a solitary measurement. Consequently, athena has to use 1 as the value of the measurement uncertainty. That is grossly in excess of the true measurement uncertainty, resulting in very small values for χ 2. We cannot, therefore, assert that any particular fit is a good fit simply by invoking what we know about Gaussian statistics. We can, however, compare successive fits, such as the two we have made thus far. An improvement of a factor of 2 in the value of reduced χ 2 is certainly significant. We can, with confidence, state that there is an intermediate component on the basis of the analysis presented thus far. But what is that intermediate. We have not yet proven its identity (although gold sulfide is a strong con- This work is licensed under the Creative Commons Attribution-ShareAlike License. 157

158 Combinatorial analysis tender!) because we have not yet considered other options. There are two algorithmically distinct but conceptually identical ways to attempt to solve this problem. One involves the use of principle component analysis (a feature not yet available in athena) of the data followed by target transform analysis to attempt to identify the third species from among the standards. The approach discussed here involves using combinatorial techniques to directly test a library of standards against our data. The mathematics of these two approaches is quite different. Since they share one major limitation, they are practically equivalent ways of identifying the intermediate state. The limitation is that both approaches require that the intermediate species be represented by the library of standards. If that unknown species is absent from the library, neither technique is able to identify it Combinatorial analysis Testing each standard against the data sounds like an unbearably boring process particularly since we may, in principle, want to consider all possible binary, ternary, or higher combinations of standards. The project file contains 9 standards. All possible combinations of 2 or 3 standards from a pool of 9 results in 120 possibilities. Performing and recording the results from that many fits sounds horrible. Fortunately, athena knows how to automate that chore. First mark all of the standards and none of the cyanobacteria data. Then click the Use marked groups button. This will insert all of the standards into the table. By default, the table is only four rows long. You will need to exit the linear combination fitting tool and open the preference tool (Sec on page 145). Set the Linearcombo maxspectra preference to at least 9. Return to the linear combination tool and load the 9 standards into the table. Click the Use at most control down to three. At this point you could click Fit all combinations to begin fitting all 120 combinations of 2 and 3 standards. This is, however, a bit of a waste of time. We know that there is metallic gold in these data. The fifth column in the table of standards is labeled req., which is short for required. Click the radiobutton in the Au foil row. This will cause the combinatorial sequence to only consider combinations which include the metallic gold standard. This reduces the number of binary and ternary combinations to 36. Now click Fit all combinations in the operations list. This will take a while. It s a good time to get a cup of coffee. Once the sequence of fits finishes, athena displays tables containing the results of all of the fits in order of increasing R-factor. The first column of the top table shows which standards were included in the fits using the numbering scheme of the bottom table. The other two columns show the R-factor and reduced χ 2 of each fit. When you click on a row in the top table, the results of that fit are inserted into the bottom table and the fit is plotted. When the combinatorial sequence finishes, the best fit of the bunch is displayed. It turns out the the combination of gold metal, aqueous Au 3+ chloride, and gold sulfide that we examined above is, in fact, the best fit. However, it is juts barely the best fit. The fit with gold thiomalate in place of gold sulfide is just barely worse. From a statistical perspective, the two fits are equivalent and the amounts of metal and chloride in the fits are very similar. The gold thiosulfate and gold thiocyanide fits are just a bit worse yet. A couple of other fits show similar statistics but an investigation shows that the peak around ev is not fit very well. After that, the other fits in the table fall off quickly in quality. The conclusion that one can comfortably draw from this is that the intermediate species is some sort of gold-sulfur complex. The aqueous gold sulfide standard gave the best result by a hair, but the other three species with a gold-sulfur ligand were statistically similar. To model the kinetics in this system, I will use the sulfide species, but it is probably not correct to say that the intermediate species is aqueous gold sulfide. 158 This work is licensed under the Creative Commons Attribution-ShareAlike License.

159 CHAPTER 12. WORKED EXAMPLES Figure 12.14: The results of the combinatorial fitting sequence, as displayed on the in the combinatorics tab. Rather it is some gold-sulfur complex formed when the cyanobacteria bacteria cells lyse upon exposure to the Au 3+ chloride solution Analyzing the data series To investigate the kinetics of this system, we will now apply the model consisting of three species metal, chloride, and sulfide to the cyanobacteria measured at each time step. Click on the top line of the upper table. This will plot the result for our best fit. It will also insert those three standards into the table on the Standards spectra tab. Click on that tab, then mark all the cyanobacteria data groups and unmark all of the standards in the group list. Now click on Fit marked groups in the operations list. This will step through the marked groups, applying the three-standard fitting model to each one. Again, you may want to relax as you wait. Once the sequence of fits finishes, you may want to click through the data groups and examine the fits at the various time steps. Note that the Marked fits report option in the operations list becomes active. Clicking on this prompts you for a name for an output file. This output file is a comma separated value text file which can be easily imported into a spreadsheet, much like one of athena s report files (Sec. 8.3 on page 87). In Figure on the next page we see that the metal content increases monotonically while the chloride content decreases monotonically. The column with the sulfide content is not seen in the image, but it remains roughly constant throughout the experiment. In this example, I have outlined the analysis performed in the paper cited at the beginning of the chapter. We have, as we set out to do, examined the reaction kinetics and tentatively identified an intermediate species. Using automation built right into athena it was relatively easy to manage a large quantity of data. This work is licensed under the Creative Commons Attribution-ShareAlike License. 159

160 Analyzing the data series Figure 12.15: A report on the results of fitting the marked groups. The report is written to a file that can be imported into a spreadsheet, like OpenOffice Calc shown here. Figure 12.16: A report on the results of fitting the marked groups. The report is written to a file that can be imported into a spreadsheet, like OpenOffice Calc shown here. 160 This work is licensed under the Creative Commons Attribution-ShareAlike License.

ATHENA User s Guide. Bruce Ravel [email protected] http://cars9.uchicago.edu/~ravel/software/exafs/

ATHENA User s Guide. Bruce Ravel bravel@bnl.gov http://cars9.uchicago.edu/~ravel/software/exafs/ ATHENA User s Guide Bruce Ravel [email protected] http://cars9.uchicago.edu/~ravel/software/exafs/ Document version 1.5 for athena version 0.8.56 July 1, 2009 Just as Phaeacian men excel the world at sailing,

More information

TUTORIAL 4 Building a Navigation Bar with Fireworks

TUTORIAL 4 Building a Navigation Bar with Fireworks TUTORIAL 4 Building a Navigation Bar with Fireworks This tutorial shows you how to build a Macromedia Fireworks MX 2004 navigation bar that you can use on multiple pages of your website. A navigation bar

More information

Intro to Excel spreadsheets

Intro to Excel spreadsheets Intro to Excel spreadsheets What are the objectives of this document? The objectives of document are: 1. Familiarize you with what a spreadsheet is, how it works, and what its capabilities are; 2. Using

More information

Microsoft PowerPoint 2010

Microsoft PowerPoint 2010 Microsoft PowerPoint 2010 Starting PowerPoint... 2 PowerPoint Window Properties... 2 The Ribbon... 3 Default Tabs... 3 Contextual Tabs... 3 Minimizing and Restoring the Ribbon... 4 The Backstage View...

More information

Excel 2007 Basic knowledge

Excel 2007 Basic knowledge Ribbon menu The Ribbon menu system with tabs for various Excel commands. This Ribbon system replaces the traditional menus used with Excel 2003. Above the Ribbon in the upper-left corner is the Microsoft

More information

Windows XP Pro: Basics 1

Windows XP Pro: Basics 1 NORTHWEST MISSOURI STATE UNIVERSITY ONLINE USER S GUIDE 2004 Windows XP Pro: Basics 1 Getting on the Northwest Network Getting on the Northwest network is easy with a university-provided PC, which has

More information

IT Quick Reference Guides Using Windows 7

IT Quick Reference Guides Using Windows 7 IT Quick Reference Guides Using Windows 7 Windows Guides This sheet covers many of the basic commands for using the Windows 7 operating system. WELCOME TO WINDOWS 7 After you log into your machine, the

More information

Adobe Dreamweaver CC 14 Tutorial

Adobe Dreamweaver CC 14 Tutorial Adobe Dreamweaver CC 14 Tutorial GETTING STARTED This tutorial focuses on the basic steps involved in creating an attractive, functional website. In using this tutorial you will learn to design a site

More information

Welcome to The Grid 2

Welcome to The Grid 2 Welcome to 1 Thanks for choosing! These training cards will help you learn about, providing step-by-step instructions for the key skills you will need and introducing the included resources. What does

More information

How to test and debug an ASP.NET application

How to test and debug an ASP.NET application Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult

More information

Calc Guide Chapter 9 Data Analysis

Calc Guide Chapter 9 Data Analysis Calc Guide Chapter 9 Data Analysis Using Scenarios, Goal Seek, Solver, others Copyright This document is Copyright 2007 2011 by its contributors as listed below. You may distribute it and/or modify it

More information

Microsoft Migrating to Word 2010 from Word 2003

Microsoft Migrating to Word 2010 from Word 2003 In This Guide Microsoft Word 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key parts of the new interface, discover free Word 2010 training,

More information

ELFRING FONTS UPC BAR CODES

ELFRING FONTS UPC BAR CODES ELFRING FONTS UPC BAR CODES This package includes five UPC-A and five UPC-E bar code fonts in both TrueType and PostScript formats, a Windows utility, BarUPC, which helps you make bar codes, and Visual

More information

Chapter 6. Formatting Text with Character Tags

Chapter 6. Formatting Text with Character Tags Chapter 6 Formatting Text with Character Tags 143 144 FrameMaker 7: The Complete Reference In many desktop publishing applications, you use a single style sheet for both paragraph and character formatting.

More information

Advanced Microsoft Excel 2010

Advanced Microsoft Excel 2010 Advanced Microsoft Excel 2010 Table of Contents THE PASTE SPECIAL FUNCTION... 2 Paste Special Options... 2 Using the Paste Special Function... 3 ORGANIZING DATA... 4 Multiple-Level Sorting... 4 Subtotaling

More information

WHAT S NEW IN WORD 2010 & HOW TO CUSTOMIZE IT

WHAT S NEW IN WORD 2010 & HOW TO CUSTOMIZE IT WHAT S NEW IN WORD 2010 & HOW TO CUSTOMIZE IT The Ribbon... 2 Default Tabs... 2 Contextual Tabs... 2 Minimizing and Restoring the Ribbon... 3 Customizing the Ribbon... 3 A New Graphic Interface... 5 Live

More information

Adobe Acrobat 6.0 Professional

Adobe Acrobat 6.0 Professional Adobe Acrobat 6.0 Professional Manual Adobe Acrobat 6.0 Professional Manual Purpose The will teach you to create, edit, save, and print PDF files. You will also learn some of Adobe s collaborative functions,

More information

ECDL. European Computer Driving Licence. Spreadsheet Software BCS ITQ Level 2. Syllabus Version 5.0

ECDL. European Computer Driving Licence. Spreadsheet Software BCS ITQ Level 2. Syllabus Version 5.0 European Computer Driving Licence Spreadsheet Software BCS ITQ Level 2 Using Microsoft Excel 2010 Syllabus Version 5.0 This training, which has been approved by BCS, The Chartered Institute for IT, includes

More information

USER GUIDE. Unit 2: Synergy. Chapter 2: Using Schoolwires Synergy

USER GUIDE. Unit 2: Synergy. Chapter 2: Using Schoolwires Synergy USER GUIDE Unit 2: Synergy Chapter 2: Using Schoolwires Synergy Schoolwires Synergy & Assist Version 2.0 TABLE OF CONTENTS Introductions... 1 Audience... 1 Objectives... 1 Before You Begin... 1 Getting

More information

Getting Started Guide. Chapter 14 Customizing LibreOffice

Getting Started Guide. Chapter 14 Customizing LibreOffice Getting Started Guide Chapter 14 Customizing LibreOffice Copyright This document is Copyright 2010 2012 by its contributors as listed below. You may distribute it and/or modify it under the terms of either

More information

Plots, Curve-Fitting, and Data Modeling in Microsoft Excel

Plots, Curve-Fitting, and Data Modeling in Microsoft Excel Plots, Curve-Fitting, and Data Modeling in Microsoft Excel This handout offers some tips on making nice plots of data collected in your lab experiments, as well as instruction on how to use the built-in

More information

Umbraco v4 Editors Manual

Umbraco v4 Editors Manual Umbraco v4 Editors Manual Produced by the Umbraco Community Umbraco // The Friendly CMS Contents 1 Introduction... 3 2 Getting Started with Umbraco... 4 2.1 Logging On... 4 2.2 The Edit Mode Interface...

More information

Hypercosm. Studio. www.hypercosm.com

Hypercosm. Studio. www.hypercosm.com Hypercosm Studio www.hypercosm.com Hypercosm Studio Guide 3 Revision: November 2005 Copyright 2005 Hypercosm LLC All rights reserved. Hypercosm, OMAR, Hypercosm 3D Player, and Hypercosm Studio are trademarks

More information

Exporting to DVD with EDIUS

Exporting to DVD with EDIUS How To Guide Exporting to DVD with EDIUS desktop. grassvalley. com professional. grassvalley. com 2008 Thomson. All rights reserved. Grass Valley is a trademark of Thomson. All other trademarks are properties

More information

MICROSOFT OFFICE ACCESS 2007 - NEW FEATURES

MICROSOFT OFFICE ACCESS 2007 - NEW FEATURES MICROSOFT OFFICE 2007 MICROSOFT OFFICE ACCESS 2007 - NEW FEATURES Exploring Access Creating and Working with Tables Finding and Filtering Data Working with Queries and Recordsets Working with Forms Working

More information

Microsoft Word 2013 Tutorial

Microsoft Word 2013 Tutorial Microsoft Word 2013 Tutorial GETTING STARTED Microsoft Word is one of the most popular word processing programs supported by both Mac and PC platforms. Microsoft Word can be used to create documents, brochures,

More information

Introduction To Microsoft Office PowerPoint 2007. Bob Booth July 2008 AP-PPT5

Introduction To Microsoft Office PowerPoint 2007. Bob Booth July 2008 AP-PPT5 Introduction To Microsoft Office PowerPoint 2007. Bob Booth July 2008 AP-PPT5 University of Sheffield Contents 1. INTRODUCTION... 3 2. GETTING STARTED... 4 2.1 STARTING POWERPOINT... 4 3. THE USER INTERFACE...

More information

Vodafone PC SMS 2010. (Software version 4.7.1) User Manual

Vodafone PC SMS 2010. (Software version 4.7.1) User Manual Vodafone PC SMS 2010 (Software version 4.7.1) User Manual July 19, 2010 Table of contents 1. Introduction...4 1.1 System Requirements... 4 1.2 Reply-to-Inbox... 4 1.3 What s new?... 4 2. Installation...6

More information

Microsoft Word 2010 Prepared by Computing Services at the Eastman School of Music July 2010

Microsoft Word 2010 Prepared by Computing Services at the Eastman School of Music July 2010 Microsoft Word 2010 Prepared by Computing Services at the Eastman School of Music July 2010 Contents Microsoft Office Interface... 4 File Ribbon Tab... 5 Microsoft Office Quick Access Toolbar... 6 Appearance

More information

Creating and Using Master Documents

Creating and Using Master Documents Creating and Using Master Documents Title: Creating and Using Master Documents Version: 0.3 First edition: 09/04 Contents Overview...2 Acknowledgments...2 Modifications and updates... 2 Why use a master

More information

Microsoft Word 2010 Tutorial

Microsoft Word 2010 Tutorial Microsoft Word 2010 Tutorial GETTING STARTED Microsoft Word is one of the most popular word processing programs supported by both Mac and PC platforms. Microsoft Word can be used to create documents, brochures,

More information

Excel 2007: Basics Learning Guide

Excel 2007: Basics Learning Guide Excel 2007: Basics Learning Guide Exploring Excel At first glance, the new Excel 2007 interface may seem a bit unsettling, with fat bands called Ribbons replacing cascading text menus and task bars. This

More information

Advanced Excel 10/20/2011 1

Advanced Excel 10/20/2011 1 Advanced Excel Data Validation Excel has a feature called Data Validation, which will allow you to control what kind of information is typed into cells. 1. Select the cell(s) you wish to control. 2. Click

More information

Action settings and interactivity

Action settings and interactivity Interactivity in Powerpoint Powerpoint includes a small set of actions that can be set to occur when the user clicks, or simply moves the cursor over an object. These actions consist of links to other

More information

Creating Custom Crystal Reports Tutorial

Creating Custom Crystal Reports Tutorial Creating Custom Crystal Reports Tutorial 020812 2012 Blackbaud, Inc. This publication, or any part thereof, may not be reproduced or transmitted in any form or by any means, electronic, or mechanical,

More information

Excel 2007 A Beginners Guide

Excel 2007 A Beginners Guide Excel 2007 A Beginners Guide Beginner Introduction The aim of this document is to introduce some basic techniques for using Excel to enter data, perform calculations and produce simple charts based on

More information

Web Ambassador Training on the CMS

Web Ambassador Training on the CMS Web Ambassador Training on the CMS Learning Objectives Upon completion of this training, participants will be able to: Describe what is a CMS and how to login Upload files and images Organize content Create

More information

Introduction to OpenOffice Writer 2.0 Jessica Kubik Information Technology Lab School of Information University of Texas at Austin Fall 2005

Introduction to OpenOffice Writer 2.0 Jessica Kubik Information Technology Lab School of Information University of Texas at Austin Fall 2005 Introduction to OpenOffice Writer 2.0 Jessica Kubik Information Technology Lab School of Information University of Texas at Austin Fall 2005 Introduction: OpenOffice Writer is a word processing application

More information

Excel 2003 A Beginners Guide

Excel 2003 A Beginners Guide Excel 2003 A Beginners Guide Beginner Introduction The aim of this document is to introduce some basic techniques for using Excel to enter data, perform calculations and produce simple charts based on

More information

Working with Tables: How to use tables in OpenOffice.org Writer

Working with Tables: How to use tables in OpenOffice.org Writer Working with Tables: How to use tables in OpenOffice.org Writer Title: Working with Tables: How to use tables in OpenOffice.org Writer Version: 1.0 First edition: January 2005 First English edition: January

More information

Lecture 2 Mathcad Basics

Lecture 2 Mathcad Basics Operators Lecture 2 Mathcad Basics + Addition, - Subtraction, * Multiplication, / Division, ^ Power ( ) Specify evaluation order Order of Operations ( ) ^ highest level, first priority * / next priority

More information

Scientific Graphing in Excel 2010

Scientific Graphing in Excel 2010 Scientific Graphing in Excel 2010 When you start Excel, you will see the screen below. Various parts of the display are labelled in red, with arrows, to define the terms used in the remainder of this overview.

More information

Enterprise Asset Management System

Enterprise Asset Management System Enterprise Asset Management System in the Agile Enterprise Asset Management System AgileAssets Inc. Agile Enterprise Asset Management System EAM, Version 1.2, 10/16/09. 2008 AgileAssets Inc. Copyrighted

More information

Sendspace Wizard Desktop Tool Step-By-Step Guide

Sendspace Wizard Desktop Tool Step-By-Step Guide Sendspace Wizard Desktop Tool Step-By-Step Guide Copyright 2007 by sendspace.com This publication is designed to provide accurate and authoritative information for users of sendspace, the easy big file

More information

Microsoft Excel 2013 Tutorial

Microsoft Excel 2013 Tutorial Microsoft Excel 2013 Tutorial TABLE OF CONTENTS 1. Getting Started Pg. 3 2. Creating A New Document Pg. 3 3. Saving Your Document Pg. 4 4. Toolbars Pg. 4 5. Formatting Pg. 6 Working With Cells Pg. 6 Changing

More information

Topography of an Origin Project and Workspace

Topography of an Origin Project and Workspace Origin Basics Topography of an Origin Project and Workspace When you start Origin, a new project opens displaying a worksheet window in the workspace. The worksheet is one type of window available in Origin.

More information

Introduction to the EXAFS data analysis

Introduction to the EXAFS data analysis Introduction to the EXAFS data analysis Giuliana Aquilanti Elettra Sincrotrone Trieste Material almost integrally taken from Carlo Meneghini: EXAFS tutorial at Synchrotron Radiation school of Duino 2011

More information

EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002

EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002 EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002 Table of Contents Part I Creating a Pivot Table Excel Database......3 What is a Pivot Table...... 3 Creating Pivot Tables

More information

If you know exactly how you want your business forms to look and don t mind

If you know exactly how you want your business forms to look and don t mind appendix e Advanced Form Customization If you know exactly how you want your business forms to look and don t mind detail work, you can configure QuickBooks forms however you want. With QuickBooks Layout

More information

13 Managing Devices. Your computer is an assembly of many components from different manufacturers. LESSON OBJECTIVES

13 Managing Devices. Your computer is an assembly of many components from different manufacturers. LESSON OBJECTIVES LESSON 13 Managing Devices OBJECTIVES After completing this lesson, you will be able to: 1. Open System Properties. 2. Use Device Manager. 3. Understand hardware profiles. 4. Set performance options. Estimated

More information

Chapter 14: Links. Types of Links. 1 Chapter 14: Links

Chapter 14: Links. Types of Links. 1 Chapter 14: Links 1 Unlike a word processor, the pages that you create for a website do not really have any order. You can create as many pages as you like, in any order that you like. The way your website is arranged and

More information

Word 2007 WOWS of Word Office 2007 brings a whole new basket of bells and whistles for our enjoyment. The whistles turn to wows.

Word 2007 WOWS of Word Office 2007 brings a whole new basket of bells and whistles for our enjoyment. The whistles turn to wows. WOWS of Word Office brings a whole new basket of bells and whistles for our enjoyment. The whistles turn to wows. [email protected] Templates Click on the Office Button PDF and select New. You can now change

More information

Intermediate PowerPoint

Intermediate PowerPoint Intermediate PowerPoint Charts and Templates By: Jim Waddell Last modified: January 2002 Topics to be covered: Creating Charts 2 Creating the chart. 2 Line Charts and Scatter Plots 4 Making a Line Chart.

More information

How to create and personalize a PDF portfolio

How to create and personalize a PDF portfolio How to create and personalize a PDF portfolio Creating and organizing a PDF portfolio is a simple process as simple as dragging and dropping files from one folder to another. To drag files into an empty

More information

Menus and Toolbars: Using and customizing those common to all OpenOffice.org components

Menus and Toolbars: Using and customizing those common to all OpenOffice.org components Menus and Toolbars: Using and customizing those common to all OpenOffice.org components Title: Menus and Toolbars: Using and customizing those common to all OpenOffice.org components Version: 1.0 First

More information

Getting Started with Excel 2008. Table of Contents

Getting Started with Excel 2008. Table of Contents Table of Contents Elements of An Excel Document... 2 Resizing and Hiding Columns and Rows... 3 Using Panes to Create Spreadsheet Headers... 3 Using the AutoFill Command... 4 Using AutoFill for Sequences...

More information

Business Portal for Microsoft Dynamics GP. Key Performance Indicators Release 10.0

Business Portal for Microsoft Dynamics GP. Key Performance Indicators Release 10.0 Business Portal for Microsoft Dynamics GP Key Performance Indicators Release 10.0 Copyright Copyright 2007 Microsoft Corporation. All rights reserved. Complying with all applicable copyright laws is the

More information

Microsoft Excel 2010. Understanding the Basics

Microsoft Excel 2010. Understanding the Basics Microsoft Excel 2010 Understanding the Basics Table of Contents Opening Excel 2010 2 Components of Excel 2 The Ribbon 3 o Contextual Tabs 3 o Dialog Box Launcher 4 o Quick Access Toolbar 4 Key Tips 5 The

More information

To launch the Microsoft Excel program, locate the Microsoft Excel icon, and double click.

To launch the Microsoft Excel program, locate the Microsoft Excel icon, and double click. EDIT202 Spreadsheet Lab Assignment Guidelines Getting Started 1. For this lab you will modify a sample spreadsheet file named Starter- Spreadsheet.xls which is available for download from the Spreadsheet

More information

Migrating to Excel 2010 from Excel 2003 - Excel - Microsoft Office 1 of 1

Migrating to Excel 2010 from Excel 2003 - Excel - Microsoft Office 1 of 1 Migrating to Excel 2010 - Excel - Microsoft Office 1 of 1 In This Guide Microsoft Excel 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key

More information

Ansur Test Executive. Users Manual

Ansur Test Executive. Users Manual Ansur Test Executive Users Manual April 2008 2008 Fluke Corporation, All rights reserved. All product names are trademarks of their respective companies Table of Contents 1 Introducing Ansur... 4 1.1 About

More information

Handout: Word 2010 Tips and Shortcuts

Handout: Word 2010 Tips and Shortcuts Word 2010: Tips and Shortcuts Table of Contents EXPORT A CUSTOMIZED QUICK ACCESS TOOLBAR... 2 IMPORT A CUSTOMIZED QUICK ACCESS TOOLBAR... 2 USE THE FORMAT PAINTER... 3 REPEAT THE LAST ACTION... 3 SHOW

More information

A QUICK OVERVIEW OF THE OMNeT++ IDE

A QUICK OVERVIEW OF THE OMNeT++ IDE Introduction A QUICK OVERVIEW OF THE OMNeT++ IDE The OMNeT++ 4.x Integrated Development Environment is based on the Eclipse platform, and extends it with new editors, views, wizards, and additional functionality.

More information

Creating trouble-free numbering in Microsoft Word

Creating trouble-free numbering in Microsoft Word Creating trouble-free numbering in Microsoft Word This note shows you how to create trouble-free chapter, section and paragraph numbering, as well as bulleted and numbered lists that look the way you want

More information

How to Edit Your Website

How to Edit Your Website How to Edit Your Website A guide to using your Content Management System Overview 2 Accessing the CMS 2 Choosing Your Language 2 Resetting Your Password 3 Sites 4 Favorites 4 Pages 5 Creating Pages 5 Managing

More information

Copyright 2006 TechSmith Corporation. All Rights Reserved.

Copyright 2006 TechSmith Corporation. All Rights Reserved. TechSmith Corporation provides this manual as is, makes no representations or warranties with respect to its contents or use, and specifically disclaims any expressed or implied warranties or merchantability

More information

OX Spreadsheet Product Guide

OX Spreadsheet Product Guide OX Spreadsheet Product Guide Open-Xchange February 2014 2014 Copyright Open-Xchange Inc. OX Spreadsheet Product Guide This document is the intellectual property of Open-Xchange Inc. The document may be

More information

Basic tutorial for Dreamweaver CS5

Basic tutorial for Dreamweaver CS5 Basic tutorial for Dreamweaver CS5 Creating a New Website: When you first open up Dreamweaver, a welcome screen introduces the user to some basic options to start creating websites. If you re going to

More information

Microsoft PowerPoint 2011

Microsoft PowerPoint 2011 Microsoft PowerPoint 2011 Starting PowerPoint... 2 Creating Slides in Your Presentation... 3 Beginning with the Title Slide... 3 Inserting a New Slide... 3 Adding an Image to a Slide... 4 Downloading Images

More information

10 STEPS TO YOUR FIRST QNX PROGRAM. QUICKSTART GUIDE Second Edition

10 STEPS TO YOUR FIRST QNX PROGRAM. QUICKSTART GUIDE Second Edition 10 STEPS TO YOUR FIRST QNX PROGRAM QUICKSTART GUIDE Second Edition QNX QUICKSTART GUIDE A guide to help you install and configure the QNX Momentics tools and the QNX Neutrino operating system, so you can

More information

Microsoft PowerPoint 2010 Handout

Microsoft PowerPoint 2010 Handout Microsoft PowerPoint 2010 Handout PowerPoint is a presentation software program that is part of the Microsoft Office package. This program helps you to enhance your oral presentation and keep the audience

More information

Contents. Launching FrontPage... 3. Working with the FrontPage Interface... 3 View Options... 4 The Folders List... 5 The Page View Frame...

Contents. Launching FrontPage... 3. Working with the FrontPage Interface... 3 View Options... 4 The Folders List... 5 The Page View Frame... Using Microsoft Office 2003 Introduction to FrontPage Handout INFORMATION TECHNOLOGY SERVICES California State University, Los Angeles Version 1.0 Fall 2005 Contents Launching FrontPage... 3 Working with

More information

BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005

BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005 BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005 PLEASE NOTE: The contents of this publication, and any associated documentation provided to you, must not be disclosed to any third party without

More information

PowerWorld Simulator

PowerWorld Simulator PowerWorld Simulator Quick Start Guide 2001 South First Street Champaign, Illinois 61820 +1 (217) 384.6330 [email protected] http://www.powerworld.com Purpose This quick start guide is intended to

More information

5. Tutorial. Starting FlashCut CNC

5. Tutorial. Starting FlashCut CNC FlashCut CNC Section 5 Tutorial 259 5. Tutorial Starting FlashCut CNC To start FlashCut CNC, click on the Start button, select Programs, select FlashCut CNC 4, then select the FlashCut CNC 4 icon. A dialog

More information

Stored Documents and the FileCabinet

Stored Documents and the FileCabinet Stored Documents and the FileCabinet Introduction The stored document features have been greatly enhanced to allow easier storage and retrieval of a clinic s electronic documents. Individual or multiple

More information

Microsoft Excel 2010 Tutorial

Microsoft Excel 2010 Tutorial 1 Microsoft Excel 2010 Tutorial Excel is a spreadsheet program in the Microsoft Office system. You can use Excel to create and format workbooks (a collection of spreadsheets) in order to analyze data and

More information

SECTION 5: Finalizing Your Workbook

SECTION 5: Finalizing Your Workbook SECTION 5: Finalizing Your Workbook In this section you will learn how to: Protect a workbook Protect a sheet Protect Excel files Unlock cells Use the document inspector Use the compatibility checker Mark

More information

SPAMfighter Mail Gateway

SPAMfighter Mail Gateway SPAMfighter Mail Gateway User Manual Copyright (c) 2009 SPAMfighter ApS Revised 2009-05-19 1 Table of contents 1. Introduction...3 2. Basic idea...4 2.1 Detect-and-remove...4 2.2 Power-through-simplicity...4

More information

Embroidery Fonts Plus ( EFP ) Tutorial Guide Version 1.0505

Embroidery Fonts Plus ( EFP ) Tutorial Guide Version 1.0505 Embroidery Fonts Plus ( EFP ) Tutorial Guide Version 1.0505 1 Contents Chapter 1 System Requirements.................. 3 Chapter 2 Quick Start Installation.................. 4 System Requirements................

More information

KaleidaGraph Quick Start Guide

KaleidaGraph Quick Start Guide KaleidaGraph Quick Start Guide This document is a hands-on guide that walks you through the use of KaleidaGraph. You will probably want to print this guide and then start your exploration of the product.

More information

Creating Interactive PDF Forms

Creating Interactive PDF Forms Creating Interactive PDF Forms Using Adobe Acrobat X Pro Information Technology Services Outreach and Distance Learning Technologies Copyright 2012 KSU Department of Information Technology Services This

More information

Content Author's Reference and Cookbook

Content Author's Reference and Cookbook Sitecore CMS 6.5 Content Author's Reference and Cookbook Rev. 110621 Sitecore CMS 6.5 Content Author's Reference and Cookbook A Conceptual Overview and Practical Guide to Using Sitecore Table of Contents

More information

Enterprise Interface User Guide

Enterprise Interface User Guide Enterprise Interface User Guide http://www.scientia.com Email: [email protected] Ref: 3094 ISO 9001:2000 / TickIT certified Copyright Scientia Ltd 2010 This document is the exclusive property of Scientia

More information

Microsoft Word 2010. Level 3

Microsoft Word 2010. Level 3 Microsoft Word 2010 Level 3 1 Copyright 2010 KSU Dept. of Information Technology Services This document may be downloaded, printed, or copied for educational use without further permission of the Information

More information

Intellect Platform - The Workflow Engine Basic HelpDesk Troubleticket System - A102

Intellect Platform - The Workflow Engine Basic HelpDesk Troubleticket System - A102 Intellect Platform - The Workflow Engine Basic HelpDesk Troubleticket System - A102 Interneer, Inc. Updated on 2/22/2012 Created by Erika Keresztyen Fahey 2 Workflow - A102 - Basic HelpDesk Ticketing System

More information

QUICK START GUIDE. Draft twice the documents in half the time starting now.

QUICK START GUIDE. Draft twice the documents in half the time starting now. QUICK START GUIDE Draft twice the documents in half the time starting now. WELCOME TO PRODOC Thank you for choosing ProDoc, your forms solution to save time and money, reduce errors, and better serve your

More information

Microsoft Word Tips and Tricks

Microsoft Word Tips and Tricks Microsoft Word Tips and Tricks Viewing the Document There are 4 views for every Word document. These are found in the lower left corner of the screen. The most common is the print layout view. Hold your

More information

Nero MediaStreaming for MCE Manual

Nero MediaStreaming for MCE Manual Nero MediaStreaming for MCE Manual Nero AG Copyright and Trademark Information This manual and all its contents are protected by copyright and are the property of Nero AG. All rights reserved. This manual

More information

Maximizing Microsoft Office Communicator

Maximizing Microsoft Office Communicator Maximizing Microsoft Office Communicator Microsoft Office Communicator is an instant messaging tool on the standard image for CG workstations. This Tech Tip contains basic instructions on how to use the

More information

FrenzelSoft Stock Ticker

FrenzelSoft Stock Ticker FrenzelSoft Stock Ticker User Manual 1 Table of Contents 1 First Start... 5 2 Basic Elements... 6 3 Context Menu Elements... 10 3.1 Show/Hide... 10 3.2 Add Symbol... 10 3.3 Remove Symbol... 10 3.4 Remove...

More information

Introduction to Microsoft Word 2003

Introduction to Microsoft Word 2003 Introduction to Microsoft Word 2003 Sabeera Kulkarni Information Technology Lab School of Information University of Texas at Austin Fall 2004 1. Objective This tutorial is designed for users who are new

More information

EVENT LOG MANAGEMENT...

EVENT LOG MANAGEMENT... Event Log Management EVENT LOG MANAGEMENT... 1 Overview... 1 Application Event Logs... 3 Security Event Logs... 3 System Event Logs... 3 Other Event Logs... 4 Windows Update Event Logs... 6 Syslog... 6

More information

Ovation Operator Workstation for Microsoft Windows Operating System Data Sheet

Ovation Operator Workstation for Microsoft Windows Operating System Data Sheet Ovation Operator Workstation for Microsoft Windows Operating System Features Delivers full multi-tasking operation Accesses up to 200,000 dynamic points Secure standard operating desktop environment Intuitive

More information

EndNote Cite While You Write FAQs

EndNote Cite While You Write FAQs IOE Library Guide EndNote Cite While You Write FAQs We have compiled a list of the more frequently asked questions and answers about citing your references in Word and working with EndNote libraries (desktop

More information

Getting Started Guide

Getting Started Guide Getting Started Guide Mulberry Internet Email/Calendar Client Version 4.0 Cyrus Daboo Pittsburgh PA USA mailto:[email protected] http://www.mulberrymail.com/ Information in this document is subject

More information

CMS Training. Prepared for the Nature Conservancy. March 2012

CMS Training. Prepared for the Nature Conservancy. March 2012 CMS Training Prepared for the Nature Conservancy March 2012 Session Objectives... 3 Structure and General Functionality... 4 Section Objectives... 4 Six Advantages of using CMS... 4 Basic navigation...

More information

Using FileMaker Pro with Microsoft Office

Using FileMaker Pro with Microsoft Office Hands-on Guide Using FileMaker Pro with Microsoft Office Making FileMaker Pro Your Office Companion page 1 Table of Contents Introduction... 3 Before You Get Started... 4 Sharing Data between FileMaker

More information

DOING MORE WITH WORD: MICROSOFT OFFICE 2010

DOING MORE WITH WORD: MICROSOFT OFFICE 2010 University of North Carolina at Chapel Hill Libraries Carrboro Cybrary Chapel Hill Public Library Durham County Public Library DOING MORE WITH WORD: MICROSOFT OFFICE 2010 GETTING STARTED PAGE 02 Prerequisites

More information