Skip to main content

Flood super-resolution CLI and library using ONNX Runtime.

Project description

floodsr

CI Release Documentation Status

Super-Resolution for flood hazard rasters. Ingests lores water grid and hires DEM and infers a hires water grid using the specified model.

Implemented models (see floodsr/models.json):

  • ResUNet_16x_DEM: 16x DEM-conditioned ResUNet

Installation

see documentation for details.

basic install

pipx install floodsr

extended install

for handling rasters too large for memory, floodsr requires GDAL backends.

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

Use

List available model versions:

floodsr models list

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. NOTE: this requires downloading the test data (see below) or replacing the *.tif paths with your own data paths.

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.

downloading test data

To download manually, browse to this release and download the assets into your current working directory.

Alternatively, bash users with curl:

curl -L -O https://github.com/cefect/floodsr/releases/download/v0.0.3/hires002_dem.tif -O https://github.com/cefect/floodsr/releases/download/v0.0.3/lowres032.tif

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.0.5.tar.gz (18.0 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.0.5-py3-none-any.whl (52.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for floodsr-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c9ed028c840a8d2fe67dfa628fc470caf68f545fea62db4b39feb40a5544de3a
MD5 35d1f421d68173f35a228fa27d8594f2
BLAKE2b-256 d0af7151f2e0b41d6fc24cfa7f6d8334df370d528957218be14ddfb1341a728a

See more details on using hashes here.

Provenance

The following attestation bundles were made for floodsr-0.0.5.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.0.5-py3-none-any.whl.

File metadata

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

File hashes

Hashes for floodsr-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5a0820423ff18d4ab512597c645127392cda53ac4e2586306c8e2ddd52cdc040
MD5 dd853ad895d66d81b8db1f41b143be81
BLAKE2b-256 d4cc6904ed61d053315ae991f9c1655c1a3ed96decd06ead14ea81ce57575720

See more details on using hashes here.

Provenance

The following attestation bundles were made for floodsr-0.0.5-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