AbsSpectrum

Class representing absorption spectrum

Class Details

class quantarhei.spectroscopy.abs2.AbsSpectrum(axis=None, data=None)[source]

Class representing absorption spectrum

Methods

add_to_data(spect) Performs addition on the data.
apply_to_data(func) Applies a submitted function to the data
at(x[, approx]) Returns the function value at the argument x
change_axis(axis) Replaces the axis object with a compatible one, zero pads or trims the values
clear_data() Sets spectrum data to zero
copy() Returns a shallow copy of the self
deepcopy() Returns a deep copy of the self
fit_exponential([guess]) Exponential fit of the function
fit_gaussian([N, guess, Nsvf]) Performs a Gaussian fit of the spectrum based on an initial guess
get_Fourier_transform([window]) Returns Fourier transform of the DFunction
get_inverse_Fourier_transform() Returns inverse Fourier transform of the DFunction
load(filename[, test]) Loads an object from a file and returns it
load_data(filename) Loads data from file into this absorption spectrum
loaddir(dirname) Returns a directory of objects saved into a directory
normalize() Normalization to one
normalize2([norm]) Normalizes spectrum to a given value
plot(**kwargs) Plotting absorption spectrum using the DFunction plot method
save(filename[, comment, test]) Saves the object with all its content into a file
save_data(filename) Saves the data of this absorption spectrum
savedir(dirname[, tag, comment, test]) Saves an object into directory containing a file with unique name
savefig(filename) Saves current figure into a file
scopy() Creates a copy of the object by saving and loading it
set_axis(axis) Sets axis atribute
set_by_interpolation(x, y[, xaxis]) Sets the data by interpolation with splines
set_data(data) Sets data atribute
set_data_protected() Implement this method to put protections on data property
set_data_writable() Implement this method to lift existing protection of data property
subtract(val) Subtracts a value from the spectrum to shift its base line
convert_2_current_u  
convert_2_internal_u  
unit_repr  
unit_repr_latex