The two-dimensional resonance of sediment-filled valleys