epraya.Gaussp#
- Gaussp(field, Int, rfield, Hpp)#
Defines the gaussian profile of the spectrum, using the resonant fields and calculated intensities.
- Parameters:
field (np.array) – Array of the field values of the spectrum.
Int (np.array) – Array of the intensity calculated in the field values
rfield (np.array) – List of the resonant fields of the system.
Hpp (float) – Peak to peak distance in mT.
- Returns:
espec (np.array) – EPR spectrum
Example
import matplotlib.pyplot as plt import epraya as epr import numpy as np Ham,Exp,_=epr.Start() Ham.Hpp=[20,0] Exp.Frange=[200,500] Exp.Points=2000 fieldr=np.linspace(Exp.Frange[0],Exp.Frange[1],Exp.Points) mu=350 sigma=50 rsonant=[300,350,320] inten=np.random.normal(mu,sigma,len(rsonant)) spc=epr.Gaussp(fieldr,inten,rsonant,Ham.Hpp[0]) plt.plot(fieldr,spc) plt.grid() plt.show()