Tidal motion in shelf seas