The measurement of the angles and intensities of diffracted X-rays in order to determine the crystal structure.