Bragg Edge - Signal vs Powder Peaks

Notebook name: bragg_edge_signal_vs_powder_peaks.ipynb


The main goal of this notebook is to display the ideal Bragg Edges of a list of elements and compare their signature to the signal of a set of FITS (MCP data) taken. Experimental set up can be changed by:

  • distance source - detector
  • detector time offset

Start the notebook

If you need help accessing this notebook, check the How To > Start the python notebooks tutorial.

How to Use It?

Select your IPTS

Check the full tutorial here

Select Working Folder

Select the working folder using the file selector. If the time spectra file is part of the folder, it will be automatically loaded, if not, you will have the option to select the time spectra file next.

Check the file selection tool tutorial to learn how to use the file selector tool.

Selection of Sample in the Image

In order to calculate the signal of the loaded images, you must define the location of your sample in the image. But before doing so, the program will need to load a random subset of those images. You will need to define how many images you want to use to select that sample. A subset has been defined for you by default. Using this value (N), the program will load N images randomly choosen within the list of images in the working folder.

Remember The more images you want to load, the longer it will take.

Once this subset has been defined, running the next cell will bring a user interface that will allow you to define the location(s) of your sample.

Select Powder Elements

It’s now time to select the powder elements for which you want to see the Bragg Edges on top of your signal.

Define Experiment Setup

This is where you can set up your experiment and play with these values to make sure the Bragg Edges of the reference powder elements show up at the right lambda in your signal data.

Display Bragg Edges vs Signal

Feel free to play with the iPlot widgets (above the plot) to zoom, pan, … etc