Skip to main content

Flood grid super-resolution CLI

Project description

floodsr

CI Release Documentation Status Documentation Status (FR) License: MIT

AI-powered super-resolution for flood hazard rasters that turns coarse water grids into sharp, decision-ready inundation maps. Fuse low-res flood grids with high-res DEMs to infer fine-scale flood patterns. Built on PyTorch and GDAL, floodsr is designed for geospatial practitioners who need to enhance flood hazard data for better risk assessment and planning.

floodsr header

Implemented models (see floodsr/models.json):

  • ResUNet_16x_DEM: 16x DEM-conditioned ResUNet
  • CostGrow_Terrain: built-in terrain-penalty growth model from Bryant et al. (2024)

Installation

see documentation for details.

basic install

pipx install floodsr

extended install

for handling rasters too large for memory, floodsr requires GDAL backends. the CostGrow terrain-penalty path also requires PCRaster.

# advanced install for VRT workflows
conda create -n floodsr-gdal -c conda-forge python=3.12 gdal pcraster -y
conda activate floodsr-gdal
python -m pip install floodsr

Use

See the Getting Started guide for a quick intro to using the CLI.

List available model versions:

Fetch a model by version into the default cache:

floodsr models fetch ResUNet_16x_DEM 

Enhance a low-resolution flood hazard raster to high resolution (tohr), fetching the DEM from the HRDEM Mosaic data source.

floodsr tohr --in lowres032.tif --fetch-hrdem 

Enhance with a local DEM file:

floodsr tohr --in lowres032.tif --dem hires002_dem.tif  

Doctor diagnostics:

floodsr doctor

For more details, see the User Guide.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

floodsr-0.2.0.tar.gz (26.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

floodsr-0.2.0-py3-none-any.whl (68.6 kB view details)

Uploaded Python 3

File details

Details for the file floodsr-0.2.0.tar.gz.

File metadata

  • Download URL: floodsr-0.2.0.tar.gz
  • Upload date:
  • Size: 26.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for floodsr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b554ad061f827b83b3b1a7920592a46ead7244ffbe82c0cccdd9062864c23f3c
MD5 b2f93fd342788e1232c0c48da1adc5e6
BLAKE2b-256 d53694d083d7694e799a802829eb84d1a703a24b8a67e3b3d2c9cf57f27f9c7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for floodsr-0.2.0.tar.gz:

Publisher: release.yml on cefect/floodsr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file floodsr-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: floodsr-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 68.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for floodsr-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09c3404494456786b3d0ba6f75874e94f5c556ce6759703da6ca6080fa061415
MD5 97b97597f7224684d5aca44108c82242
BLAKE2b-256 0f9887e78591c0a4968f8b7fbb21321d9c77df05f4e9005327c48ab217a74291

See more details on using hashes here.

Provenance

The following attestation bundles were made for floodsr-0.2.0-py3-none-any.whl:

Publisher: release.yml on cefect/floodsr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page