NDIR stands for non-dispersive infrared. The principle is straightforward: a target gas absorbs a specific infrared band, so measuring how much light is lost across the gas cell gives the concentration.
"Non-dispersive" means the system does not spread the spectrum with a grating or prism and scan it point by point. In the usual structure an infrared filter selects the band that matches the absorption feature of the gas, and the detector receives the integrated radiation within that band.
An NDIR filter is normally an infrared bandpass element: it passes the target band and suppresses radiation elsewhere in a defined range. It can be a separate component in the optical path, or integrated into the window of a thermopile, pyroelectric or suitable photon detector.
Its job is not only to "pick one wavelength". It also sets how wide a band is covered, limits non-target signal, and together with source, gas cell and detector forms the response the instrument actually measures.