Flood super-resolution CLI and library using ONNX Runtime.
Project description
floodsr
Super-Resolution for flood hazard rasters. Ingests lores water grid and hires DEM and infers a hires water grid using the specified model.
- Documentation: https://floodsr.readthedocs.io/en/latest/
- Contribute: https://github.com/cefect/floodsr/blob/master/CONTRIBUTING.md
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9ed028c840a8d2fe67dfa628fc470caf68f545fea62db4b39feb40a5544de3a
|
|
| MD5 |
35d1f421d68173f35a228fa27d8594f2
|
|
| BLAKE2b-256 |
d0af7151f2e0b41d6fc24cfa7f6d8334df370d528957218be14ddfb1341a728a
|
Provenance
The following attestation bundles were made for floodsr-0.0.5.tar.gz:
Publisher:
release.yml on cefect/floodsr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
floodsr-0.0.5.tar.gz -
Subject digest:
c9ed028c840a8d2fe67dfa628fc470caf68f545fea62db4b39feb40a5544de3a - Sigstore transparency entry: 1116840191
- Sigstore integration time:
-
Permalink:
cefect/floodsr@b875f88f029ab1f634df80ff9a87dc1752ff15b0 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/cefect
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b875f88f029ab1f634df80ff9a87dc1752ff15b0 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a0820423ff18d4ab512597c645127392cda53ac4e2586306c8e2ddd52cdc040
|
|
| MD5 |
dd853ad895d66d81b8db1f41b143be81
|
|
| BLAKE2b-256 |
d4cc6904ed61d053315ae991f9c1655c1a3ed96decd06ead14ea81ce57575720
|
Provenance
The following attestation bundles were made for floodsr-0.0.5-py3-none-any.whl:
Publisher:
release.yml on cefect/floodsr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
floodsr-0.0.5-py3-none-any.whl -
Subject digest:
5a0820423ff18d4ab512597c645127392cda53ac4e2586306c8e2ddd52cdc040 - Sigstore transparency entry: 1116840209
- Sigstore integration time:
-
Permalink:
cefect/floodsr@b875f88f029ab1f634df80ff9a87dc1752ff15b0 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/cefect
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b875f88f029ab1f634df80ff9a87dc1752ff15b0 -
Trigger Event:
push
-
Statement type: