Hydraulic control of continental shelf waves