Demeter

Description Perl tools for X-ray Absorption Spectroscopy
Demeter > Perl Modules > Demeter::Data::Units
Source

NAME

Demeter::Data::Units - Unit conversion

VERSION

This documentation refers to Demeter version 0.9.26.

SYNOPSIS

  my $data = Demeter::Data -> new;
  my $k = $data->e2k(312);
  my $e = $data->k2e(3.7);

DESCRIPTION

This role of Demeter::Data contains methods for unit conversion.

METHODS

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.

CONFIGURATION

See Demeter::Config for a description of the configuration system.

DEPENDENCIES

Demeter's dependencies are in the Build.PL file.

BUGS AND LIMITATIONS

Please report problems to the Ifeffit Mailing List (http://cars9.uchicago.edu/mailman/listinfo/ifeffit/)

Patches are welcome.

AUTHOR

Bruce Ravel, http://bruceravel.github.io/home

http://bruceravel.github.io/demeter/

LICENCE AND COPYRIGHT

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.