Partial entrainment of gravel bars during floods