Local grating