X-ray diffraction procedures