xrdtools package¶
xrdtools module¶
xrdtools.io module¶
xrdtools.utils module¶
-
xrdtools.utils.
angle2qvector
(tt, om, lam=1.54)[source]¶ Convert angles to q vector.
Calculate the q-vector from the 2theta tt and omega om angle and the x-ray wavelength lambda lam.
Parameters: - tt (array-like) – Array containing the 2Theta values.
- om (array-like) – Array containing the Omega values.
- lam (float) – The wavelength lambda in Angstrom [Default: 1.54].
Returns: - kpar (ndarray)
- kperp (ndarray)
-
xrdtools.utils.
angles
(hkl, lam=1.54, lattice_param=(3.905, 3.905, 3.905))[source]¶ Compute the angle for a given hkl position.
Compute the 2Theta, Omega and Delta angle for a given hkl point, wavelength lambda and unit cell lattice parameters.
Parameters: Returns: - tt (ndarray)
- omega (ndarray)
- delta (ndarray)
-
xrdtools.utils.
get_qmap
(data, omega_offset=0)[source]¶ Function to calculate kpar, kperp.
Parameters: Returns: - kpar (ndarray)
- kperp (ndarray)