Resonant effects in periodic gratings comprising a finite number of grooves in each period.