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