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}
d : array
An array of d (plane) spacing
q : array
An array of q values