How the diffractograms from powder and single crystal diffraction can be used to identify and quantify minerals in a rock.