Description | Perl tools for X-ray Absorption Spectroscopy |
Demeter::Data::Units - Unit conversion
This documentation refers to Demeter version 0.9.26.
my $data = Demeter::Data -> new;
my $k = $data->e2k(312);
my $e = $data->k2e(3.7);
This role of Demeter::Data contains methods for unit conversion.
e2k
This method converts between relative energy values and wavenumber using the group's value for e0.
k2e
This method converts between relative wavenumber and energy values using the group's value for e0.
e2l
This method converts between absolute energy and wavelength. l2e
is an alias for this method -- the formula is the same regardless of direction.
See Demeter::Config for a description of the configuration system.
Demeter's dependencies are in the Build.PL file.
Please report problems to the Ifeffit Mailing List (http://cars9.uchicago.edu/mailman/listinfo/ifeffit/)
Patches are welcome.
Bruce Ravel, http://bruceravel.github.io/home
http://bruceravel.github.io/demeter/
Copyright (c) 2006-2018 Bruce Ravel (http://bruceravel.github.io/home). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlgpl.
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.