neutronpy.crystal.Sample.get_d_spacing

Sample.get_d_spacing(hkl)[source]

Returns the d-spacing of a given reciprocal lattice vector.

Parameters:
hkl : array_like

Reciprocal lattice vector in r.l.u.

Returns:
d : float

The d-spacing in Å