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.8.tar.gz (19.3 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.8-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: floodsr-0.0.8.tar.gz
  • Upload date:
  • Size: 19.3 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.8.tar.gz
Algorithm Hash digest
SHA256 79a21322f7d22982a2de3b659af0de323f6a823ee7c1781bf307bd2f2e60bb32
MD5 4c9a6cd9b3b28591043ec54f17a814b1
BLAKE2b-256 e7369f6d850ec931ac5f378d2ebbb09e2e892de84c4980c8f53e4e47c7fa163b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: floodsr-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 53.0 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 65cc9d56a4a6286774201112ac64698852bb30c5b07acea7e02412e59045df9e
MD5 ea9908816f6c1516b3b0542ec0711fcb
BLAKE2b-256 14e5559fb503bdb20806a184c30336eaf1741a7a7e3147389b039ef3eadb68c1

See more details on using hashes here.

Provenance

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