Xray::...ceEXAFS(3pm)
π Xray::...ceEXAFS(3pm) π
okay bestie so this is a page from the User Contributed Perl Documentation, and it's literally called Xray::...ceEXAFS(3pm) β the vibes are immaculate, the name is a little mysterious, we move.
β¨ NAME β¨
Ifeffit::Demeter::FluorescenceEXAFS β corrections for fluorescence EXAFS data π¦
πΈ DESCRIPTION πΈ
So basically this class hands you class methods that compute corrections to fluorescence EXAFS data for the effects of normalization, I0, and self-absorption. And the way it does that? It pulls x-ray absorption coefficients from the Xray::Absorption package. iconic. no cap. π
π METHODS π
heads up bestie: the values that come back from every single one of these methods depend on the data resource you're using. go look at Xray::Absorption for the tea. β
β "mcmaster"
It's called "mcmaster" for historical reasons β we don't ask questions, we just respect the lore. This one calculates the normalization correction for a given element. π
$sigma_mm = Xray::FluorescenceEXAFS->mcmaster($element, $edge);
It takes the central atoms tag and the alphanumeric edge symbol as arguments, and it returns the normalization correction in units of Angstrom squared.
"normalization" and "edgestep" are aliases for this method. slay, three names, one function, main character energy fr fr. π
π "i0"
This one calculates the correction due to the I0 fill gases in a fluorescence experiment. π«Ά
$gases = {nitrogen=>$nitrogen, argon=>$argon, krypton=>$krypton};
$sigma_i0 = Xray::FluorescenceEXAFS->i_zero($central, $edge, $gases);
It takes the central atoms tag, the alphanumeric edge symbol, and a reference to a hash containing the volume percentages of the three gases as arguments. It assumes that any remaining volume is filled with helium, and it correctly accounts for the fact that nitrogen is a diatom (not me remembering your chemistry for you π). It returns the I0 correction in units of Angstrom squared.
"i_zero" and "izero" are aliases for this method. two aliases, so many nicknames, so little time. β¨
π¦ "self"
This one calculates the correction due to self-absorption in a fluorescence experiment. It assumes that the sample is infinitely thick and that the entry and exit angles of the photons are the same. π
$contents = {Y=>1, Ba=>2, Cu=>3, O=>7};
($amp_i0, $sigma_i0) = Xray::FluorescenceEXAFS->self($central, $edge, $contents);
It takes the central atoms tag, the alphanumeric edge symbol, and a reference to a hash which counts the atoms in the unit cell. It returns a list β and listen, the order matters bestie β whose zeroth element is the multiplicative amplitude correction and whose first element is the sigma^2 correction in units of Angstrom squared. π
"overabsorption" is an alias for this method. (the original says "aliases", plural β we love a typo moment, we keep it exactly as it is π)
π BUGS AND LIMITATIONS π
okay not to be dramatic but here's the part where we hold hands:
- Fourth cumulant corrections are not calculated. just. not there. π«
- Geometry and thickness effects are not included in the self absorption calculation. nope, not in there either.
Please report problems to Bruce Ravel (bravel AT bnl DOT gov) π
Patches are welcome. literally please, the door is open, come thru. πͺβ¨
π AUTHOR π
Bruce Ravel (bravel AT bnl DOT gov)
http://cars9.uchicago.edu/~ravel/software/
π LICENCE AND COPYRIGHT π
Copyright (c) 2006-2008 Bruce Ravel (bravel AT bnl DOT gov). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. π no promises bestie, it's giving "as is" energy, and that's the law.
and that's the whole page!! π this lil beauty is from perl v5.34.0, dated 2022-06-28, and it's filed under Xray::...ceEXAFS(3pm) in the User Contributed Perl Documentation. go forth and correct your fluorescence EXAFS, bestie β you got this. mwah ππ
π¦ where this page comes from
- debian bookworm: libxray-absorption-perl 3.0.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libxray-absorption-perl 3.0.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libxray-absorption-perl 3.0.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libxray-absorption-perl 3.0.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libxray-absorption-perl 3.0.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms