polyTEM.paracrystallineΒΆ
Built off of LatticeDisorder.py
Functions
|
Bin/Histogram the distribution of qvals Calculate paracrystallinity % g where g = np.sqrt(E[d**2] / E[d] - 1) d == d-spacing of lattice plane E[x**n] == expected value, or nth moment of random variable x -- INPUTS qvals = 1D np.array of q_centers to count label = plot title, can include spaces N = number of images this is binned across |
|
x is array of observed q-values assuming that distribution of x is Gaussian like the FWHM of the distribution of x is std*np.sqrt(8 * np.log(2)) |
|
From Appendix B in Rivnay, et al. Warren-Averbach paper FWHM of a Voigt profile = (4*np.pi**2 * g**2 / d )(0.5346 + np.sqrt(0.2166 + (8*np.log(2) * erms**2)/g**2)). |
|
From 4D datacube containing the Integrated Intensity vs q linecuts from FFT output, peak fit and extract q-value of peak center. |
|
assuming that the distribution is gaussian like then the standard deviation sigma = fwhm / (np.sqrt(8 * np.log(2))) |
|
Calculates the root-mean-square value of lattice parameter fluctuations e_rms = np.sqrt( E[e**2] ) e = delta_d / d, where d=d-spacing E[x] is expected value of x |
|