Moving the CDOE grating changes its diffraction properties and the light it reflects onto the gas sensor's detector. It does this because it needs not only to measure in its chosen absorbing band but also to make regular reference measurements outside it, to check for residual absorption or scattering not due to the methane.