NSLS-II / PyXRF

Fluorescence fitting GUI.
http://nsls-ii.github.io/PyXRF
BSD 3-Clause "New" or "Revised" License
31 stars 23 forks source link

Extended Quantitative Analysis #298

Closed dmgav closed 1 year ago

dmgav commented 1 year ago

Changes in this PR extend functionality of quantitative analysis features. Previously, quantitative normalization of maps could be applied only to the emission lines with existing calibration. This functionality is still used as default when quantitative analysis is enabled (Quantitative checkbox is checked in XRF maps and RGB tabs or in Export to TIFF and TXT ... dialog box). A new combo box (to the right of Quantitative checkbox) allows to select reference emission lines from the list of emission lines with existing calibration. The list is populated after calibration data is loaded using Load Quantitative Calibration. Once the reference line is selected, the adjusted quantitative calibration for the reference line is used to normalize the maps for the rest of the emission lines. The quantitative scaling factor (rho = density/fluorescence_intensity) for the reference line is multiplied by the atomic scaling factor (cs2/cs1)*(A1/A2), where A1 and A2 represent atomic weight of the reference and target element and cs1 and cs2 are cross sections (in Barns) of the reference and target emission lines. The map (fluorescence_intensity) for the target element is normalized as:

rho2 = (cs2/cs1) * (A2/A2) * rho1
density2 = rho2 * fluorescence_intensity2

Summary of Changes for Release Notes

Fixed

Added

Changed

Removed

How Has This Been Tested?