Import code from rcross/qldfloods