Here g = q /(2 π) is the scattering vector q in crystallographer units, N is the number of atoms, f j [ g ] is the atomic scattering factor for atom j and scattering vector g, while r j is the vector position of atom j. The Fourier phase depends on one's choice of coordinate origin.