Application of an early warning system for floods