Skip to main content

Flood super-resolution CLI and library using ONNX Runtime.

Project description

floodsr

CI Release Documentation Status License: MIT

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

floodsr header

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

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.0.9.tar.gz (19.5 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.9-py3-none-any.whl (56.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: floodsr-0.0.9.tar.gz
  • Upload date:
  • Size: 19.5 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.9.tar.gz
Algorithm Hash digest
SHA256 117c3b49d82b72f18d32882a69967783f15e65a63ab61fa2687c2277c08400ab
MD5 844b48330f71b0a2df4e5815f964c2b4
BLAKE2b-256 8b83499a55090a21d201748cde58189a2c0dcd7d3392bbe96b0017e89aeeb322

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: floodsr-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 56.3 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 13165f1669c43a4c16df1a6de0bdf286b7ee92f4ea2345400b6d3c8d690ae1d9
MD5 d25a8e2256a56b37c2be961e8cb9a1bc
BLAKE2b-256 593ae035013ab8f35b44251991a0ad37a80528df304e4223c43e9daa82b88758

See more details on using hashes here.

Provenance

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