A team of scientists has developed a new method for predicting the risk of dangerous flooding by measuring the water in various rivers.