skxray.core.d_to_q

skxray.core.d_to_q(d)

Helper function to convert \(d\) to \(q\). The point of this function is to prevent fat-fingered typos.

By definition the relationship is:

..math

d = \frac{2 \pi}{q}
Parameters:

d : array

An array of d (plane) spacing

Returns:

q : array

An array of q values