An optical spectrometer (spectrophotometer, spectrograph or spectroscope) is an instrument used to measure properties of light over a specific portion of the electromagnetic spectrum, typically used in spectroscopic analysis to identify materials. The variable measured is most often the light's intensity but could also, for instance, be the polarization state. The independent variable is usually the wavelength of the light or a unit directly proportional to the photon energy, such as reciprocal centimeters or electron volts, which has a reciprocal relationship to wavelength. A spectrometer is used in spectroscopy for producing spectral lines and measuring their wavelengths and intensities. Spectrometers may operate over a wide range of non-optical wavelengths, from gamma rays and X-rays into the far infrared. If the instrument is designed to measure the spectrum on an absolute scale rather than a relative one, then it is typically called a spectrophotometer. The majority of spectrophotometers are used in spectral regions near the visible spectrum. In general, any particular instrument will operate over a small portion of this total range because of the different techniques used to measure different portions of the spectrum. Below optical frequencies (that is, at microwave and radio frequencies), the spectrum analyzer is a closely related electronic device. Spectrometers are used in many fields. For example, they are used in astronomy to analyze the radiation from objects and deduce their chemical composition. The spectrometer uses a prism or a grating to spread the light into a spectrum. This allows astronomers to detect many of the chemical elements by their characteristic spectral lines. These lines are named for the elements which cause them, such as the hydrogen alpha, beta, and gamma lines. A glowing object will show bright spectral lines. Dark lines are made by absorption, for example by light passing through a gas cloud, and these absorption lines can also identify chemical compounds. Much of our knowledge of the chemical makeup of the universe comes from spectra. Spectroscopes Spectroscopes are often used in astronomy and some branches of chemistry. Early spectroscopes were simply prisms with graduations marking wavelengths of light. Modern spectroscopes generally use a diffraction grating, a movable slit, and some kind of photodetector, all automated and controlled by a computer. Recent advances have seen increasing reliance of computational algorithms in a range of miniaturised spectrometers without diffraction gratings, for example, through the use of quantum dot-based filter arrays on to a CCD chip