analysis.spectrum_broadening

A package containing classes and functions to broaden stick spectra.

Classes

SpectrumDataWriter

A class to write broadened spectra to output files.

Functions

build_spectrum()

A function to broaden a stick spectrum file and write the result.

alpha_from_fwhm()

A function to convert a Gaussian full width at half maximum to the exponent alpha.

fwhm_from_alpha()

A function to convert a Gaussian exponent alpha to the full width at half maximum.

read_stick_spectrum()

A function to read a two-column stick spectrum file.

wavenumber_grid()

A function to build the regular wavenumber grid of the broadened spectrum.

broaden()

A function to broaden a stick spectrum on a wavenumber grid.

Submodules

Summary

__all__ Classes:

SpectrumDataWriter

Class for writing a broadened spectrum to a file.

__all__ Functions:

alpha_from_fwhm

Convert a Gaussian full width at half maximum to the exponent alpha.

broaden

Broaden a stick spectrum on a wavenumber grid.

build_spectrum

Broaden a two-column stick spectrum file and write the result.

fwhm_from_alpha

Convert a Gaussian exponent alpha to the full width at half maximum.

read_stick_spectrum

Read a two-column stick spectrum file.

wavenumber_grid

Build the regular wavenumber grid of the broadened spectrum.

__all__ Data:

DEFAULT_ALPHA

Convert a string or number to a floating-point number, if possible.

DEFAULT_WAVENUMBER_MAX

Convert a string or number to a floating-point number, if possible.

DEFAULT_WAVENUMBER_MIN

Convert a string or number to a floating-point number, if possible.

DEFAULT_WAVENUMBER_STEP

Convert a string or number to a floating-point number, if possible.

Reference