GithubHelp home page GithubHelp logo

jannishoch / floodimpact Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 79.71 MB

data and notebook for analysis of flood extent maps from different global flood models on resulting number of people at risk

License: MIT License

Jupyter Notebook 99.60% Python 0.35% Shell 0.05%

floodimpact's Introduction

floodimpact

Code to evaluate the impact of floods plus some useful utility scripts to work with spatial data.

installation

# clone from GitHub
$ git clone https://github.com/JannisHoch/floodimpact.git

# cd to folder with floodimpact code
$ cd path/to/floodimpact

# create and activate conda environment
$ conda env create -f environment.yml
$ conda activate flood_impact

# install package
$ pip install -e .

execution

Use command line script.

Usage: floodimpact [OPTIONS] COMMAND [ARGS]...

Options:
    --debug / --no-debug
    --version / --no-version
    --help                    Show this message and exit.

Commands:
    get-contingency  "Computes contingency data computed from observed and...
    resample-tiff    Command line script resampling a tiff-file (DR) to the...

The get-contingency script works as follows.

Usage: floodimpact get-contingency [OPTIONS] OBS SIM

Computes contingency data computed from observed and simulated flood
extent.

Returns hit rate, false alarm ratio, and critical succes index. Also a
tiff-file with contingency map.

OBS: path to observed flood extent.

SIM: path to simualted flood extent.

Options:
    -ot, --observation-threshold FLOAT
    -st, --simulation-threshold INTEGER
    -out, --output-directory PATH   path to output directory
    --plot / --no-plot              show plot of source and warped file
    --help                          Show this message and exit.

The resample-tiff script works as follows.

Usage: floodimpact resample-tiff [OPTIONS] DR SR

Command line script resampling a tiff-file (DR) to the spatial extent and
spatial resolution of another tiff-file (SR).

Returns a resampled tiff-file.

DR: file that will be resampled.

SR: file whose spatial properties will be used for resampling.

Options:
    -out, --output-name TEXT  output name, can include relative path
    --plot / --no-plot        show plot of source and warped file
    --help                    Show this message and exit.

Examples can be run with:

$ sh run_get_contingency.sh
$ sh run_resample_tiff.sh

contact

Jannis Hoch ([email protected])

floodimpact's People

Contributors

jannishoch avatar

Watchers

 avatar

floodimpact's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.