{ "cells": [ { "cell_type": "markdown", "id": "b4fe2953-8c13-4df1-95ec-bb37484f9012", "metadata": {}, "source": [ "# Case Study - X-ray Photoelectron Spectroscopy (XPS)\n", "\n", "
Overview
\n", "\n", "Questions:\n", "\n", "* How can I use Python to fit analyze XPS data?\n", "\n", "Objectives:\n", "\n", "* Use pandas to read XPS data.\n", "* Use SciPy to find peaks.\n", "* Create interactive plots data.\n", "* Perform a background subtraction.\n", "* Find and fit peaks with Gaussian functions.\n", "\n", "Why do we reverse the x axis?
\n", "\n", "We reverse the x axis on XPS spectra so that the order of the peaks represent how tightly bound electrons are.\n", "When the axis is reversed, more tightly bound electrons are on the left, and more loosely bound electrons are on the right.\n", "\n", "Exercise
\n", "\n", "As you can see, just using the `find_peaks` function returns many more peaks to us than we would choose to label. \n", "\n", "[Read the documentation for the `find_peaks` function.](https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.find_peaks.html)\n", "\n", "Try different arguments in order to find appropriate peaks in the spectrum.\n", "\n", "\n", "**To continue with the tutorial, change your `find_peaks` function above to**:\n", "\n", "```\n", "peak_index, properties = find_peaks(x=wide_scan[\"intensity\"], prominence=1000)\n", "```\n", "\n", "Exercise
\n", "\n", "Use the following [reference table](https://www.thermofisher.com/us/en/home/materials-science/learning-center/periodic-table.html) to identify the oxygen peak.\n", "\n", "After you have identified it, add a label to the appropriate row.\n", "\n", "Exercise
\n", "\n", "Read in data for the oxygen peak and perform a background correction.\n", "\n", "The data for the oxygen peak is in the file `si_data/N0125704.asc`.\n", "\n", "Be sure to save oxygen data in appropriate variable names. \n", "You will use both O and Si data later.\n", "\n", "Exercise
\n", "\n", "Repeat the integration for the oxygen peak.\n", "\n", "After you have calculated the area of the oxygen peak, figure out the ratio of Si to O in you material by taking the ratio of the calculated areas.\n", "\n", "Exercise
\n", "\n", "Repeat the analysis for the second Si peak and for the O peak.\n", "Exercise
\n", "\n", "Repeat the full analysis starting from background subtraction for the oxygen peak.\n", "\n", "\n", "\n", "Once you have fit and integrated the oxygen peak, you can compare the ratio of Si to O in the material by\n", "taking the ratio of the area of the silicon peaks to the oxygen peak.\n", "