neutronpy.crystal.Sample.get_two_theta

Sample.get_two_theta(hkl, wavelength)[source]

Returns the detector angle 2𝜃 for a given reciprocal lattice vector and incident wavelength.

Parameters:
hkl : array_like

Reciprocal lattice vector in r.l.u.

wavelength : float

Wavelength of the incident beam in Å

Returns:
two_theta : float

The angle of the detector 2𝜃 in degrees