A quasi-monochromatic light beam carrier for a particular telecommunication channel
is likely to experience drift because of age, temperature, or other factors, and
may cause the centroid wavelength of the carrier to shift. Temperature adjustments
by wavelength lockers to compensate for drift on one channel may affect the performance
of other channels. Embodiments of the present invention couple a quasi-monochromatic
light beam through a substrate-based grating, diffract the light beam from the
edge of the substrate to free space, and detect the light beam from free space
at a position detector to determine the centroid wavelength based on a position
of the light beam incident on the detector. The diffracted light beam may be reflected
within the substrate a number of times prior to exiting the substrate towards the detector.