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.6.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.6-py3-none-any.whl (52.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: floodsr-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 d6b2a4514a24c5841282b4fc3b1d4b865555b2c7412324120ee4f9f208d0055e
MD5 f704966c026d51638b400b7dd9b7eb0f
BLAKE2b-256 cf5b7b296b4eceb2d5cdd2fdd585a600ee83b19222ed25dd6abb29482e64e1a6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: floodsr-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 52.9 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f2de5ef16aa817a812490ffd4aaab7301310decc295341017dde5495db4442df
MD5 f955976e5f0a62fa039d839d0669bbf2
BLAKE2b-256 2c3eacd2b901e0bbd3f101a69c437ae2edd4e6ac21529515723c2e8eab874333

See more details on using hashes here.

Provenance

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