The propagation of gravity waves through a critical layer for conditions of moderate wind shear