Notebook name: bragg_edge_raw_sample_and_powder.ipynb
If you need help accessing this notebook, check the How To > Start the python notebooks tutorial.
Check the full tutorial here
Select the folder containing the full sample tof data. The program will automatically try to locate the time spectra file in this folder. If not found, you will need to locate it next.
Just like it was done for the sample data, select the open beam folder. The notebook will let you know if the sample and ob folders have the same number of files.
In order to improve the normalization, you have the option to select a region of interest (ROI) in the radiographs of the sample. Make sure that if you select a region, this region is away from the sample, and only contain the background.
The first widget allows you to select how many images to use (those will be summed into a single view) to define that region of interest. The higher the number of images used, the longer the next user interface will take to show up. Usually the default value is a good compromise and is high enough to get a good idea of the position of the sample.
Check the ROI selection tool tutorial to learn how to use that tool.
The program will use the sample and ob loaded, and the optional background ROI, to normalized the data.
This is where you can define one, or more element to use to compare the Bragg edges with.
You can choose any element from the following list:
‘C (diamond)’ ‘C (graphite)’ ‘Si’ ‘Ge’ ‘AlAs’ ‘AlP’ ‘AlSb’ ‘GaP’ ‘GaAs’ ‘GaSb’ ‘inconel’ ‘InP’ ‘InAs’ ‘InSb’ ‘MgO’ ‘SiC’ ‘CdS’ ‘CdSe’ ‘CdTe’ ‘ZnO’ ‘ZnS’ ‘PbS’ ‘PbTe’ ‘BN’ ‘BP’ ‘CdS’ ‘ZnS’ ‘AlN’ ‘GaN’ ‘InN’ ‘LiF’ ‘LiCl’ ‘LiBr’ ‘LiI’ ‘NaF’ ‘NaCl’ ‘NaBr’ ‘NaI’ ‘KF’ ‘KCl’ ‘KBr’ ‘KI’ ‘RbF’ ‘RbCl’ ‘RbBr’ ‘RbI’ ‘CsF’ ‘CsCl’ ‘CsI’ ‘Al’ ‘Fe’ ‘Ni’ ‘Cu’ ‘Mo’ ‘Pd’ ‘Ag’ ‘W’ ‘Pt’ ‘Au’ ‘Pb’ ‘TiN’ ‘ZrN’ ‘HfN’ ‘VN’ ‘CrN’ ‘NbN’ ‘TiC’ ‘ZrC0.97’ ‘HfC0.99’ ‘VC0.97’ ‘NC0.99’ ‘TaC0.99’ ‘Cr3C2’ ‘WC’ ‘ScN’ ‘LiNbO3’ ‘KTaO3’ ‘BaTiO3’ ‘SrTiO3’ ‘CaTiO3’ ‘PbTiO3’ ‘EuTiO3’ ‘SrVO3’ ‘CaVO3’ ‘BaMnO3’ ‘CaMnO3’ ‘SrRuO3’ ‘YAlO3’
This is based on a library we developed called BraggEdge.
To enter more than 1 element, use a colon to separate them. Run the next cell to check if the element is part of the list.
This is where you define the position (ROI) of your sample on the radiographs. Only the counts within that region will be used in the rest of the notebook.
Check the ROI selection tool tutorial to learn how to use that tool.
Those information will be needed to convert the time of flight values into lambda. Make sure you used the right units
Just run this cell to let the notebook convert TOF information into lambda and prepare the data to compare them with the un-strained, powder, Bragg edges.
Sample signal and un-strained Bragg edges of elements selected will be displayed on the same plot.
Feel free to play with the iPlot widgets (above the plot) to zoom, pan, … etc
You can now export into an ascii file the average transmission vs Lambda (and tof) The ascii file created will have the following format
# input sample folder
# list of region of interest used to define sample position
# list of region of interest used to define background position
#
# tof (micros), lambda (Angstroms), Average transmission
# all data in 3 columns format
You can also export the Bragg edges values of the various elements you selected