An innovative new tool has been developed to help protect against flooding in a town left underwater in 2024.