skxray.core.q_to_d

skxray.core.q_to_d(q)

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

By definition the relationship is:

..math

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

q : array

An array of q values

Returns:

d : array

An array of d (plane) spacing