1. A method of determining energy content and quantity of a contaminant in a fluid comprising: transmitting a fluid within a fluid infrastructure through an optical cell; scanning said fluid over a broad wavelength range within the near infrared spectrum using a scanning source; evaluating said broad wavelength range at low resolution to determine energy content of said fluid; and increasing the resolution of a narrow wavelength range within said broad wavelength range and using said increased resolution to determine a quantity of a contaminant within said narrow wavelength range.