This article from Galaxy Scientific outlines how the raw materials used to make beer are analyzed using NIR spectroscopy.