As climate change increases the risk of flooding worldwide, understanding how floods form has never been more important.