A new tool to better control floods