Skip to main content

Direct damage assessments for natural hazards

Project description

DamageScanner: direct damage assessments for natural hazards

Logo

github repo badge github license badge fair-software badge Documentation Status PyPI version DOI PyPI - Downloads

A python toolkit for direct damage assessments for natural hazards. Even though the method is initially developed for flood damage assessments, it can calculate damages for any hazard for which you just require a vulnerability curve (i.e. a one-dimensional relation).

Please note: This package is still in development phase. In case of any problems, or if you have any suggestions for improvements, please raise an issue.

Background

This package is (loosely) based on the original DamageScanner, which calculated potential flood damages based on inundation depth and land use using depth-damage curves in the Netherlands. The DamageScanner was originally developed for the 'Netherlands Later' project (Klijn et al., 2007). The original land-use classes were based on the Land-Use Scanner in order to evaluate the effect of future land-use change on flood damages.

Installation

To use DamageScanner in your project:

Using uv (Recommended)

uv add damagescanner

Using pip

pip install damagescanner

Development & Testing

To set up a local environment for development or to run tests:

Using uv (ecommended)

uv is an extremely fast Python package manager and is the preferred way to set up the development environment.

# Clone the repository
git clone https://github.com/VU-IVM/DamageScanner.git
cd DamageScanner

# Create a virtual environment and install all optional dependencies
uv sync --all-groups

Using Miniconda

If you prefer Miniconda, use the provided environment.yml file:

# Add conda-forge channel for extra packages
conda config --add channels conda-forge

# Create environment and activate
conda env create -f environment.yml
conda activate ds-test

Documentation

Please refer to the documentation of this project for the full documentation of all functions.

How to cite

If you use the DamageScanner in your work, please cite the package directly:

Here's an example BibTeX entry:

@misc{damagescannerPython,
      author       = {Koks, E.E.},
      title        = {DamageScanner: Python tool for natural hazard damage assessments},
      year         = 2022,
      doi          = {10.5281/zenodo.2551015},
      url          = {http://doi.org/10.5281/zenodo.2551015}
}

License

Copyright (C) 2022 Elco Koks. All versions released under the MIT license.

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

damagescanner-1.0.0b1.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

damagescanner-1.0.0b1-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file damagescanner-1.0.0b1.tar.gz.

File metadata

  • Download URL: damagescanner-1.0.0b1.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for damagescanner-1.0.0b1.tar.gz
Algorithm Hash digest
SHA256 5bd7ee96438b08f4f3e390b2c9a4334bc169b7be69c3d98b38a07fd590ccfa73
MD5 2f62cc7a6b30ead78f6a59279c914aa8
BLAKE2b-256 ed5f6e2647a469075cd038217224d3da020cc1c01340fa428d2fc12e1d6edce8

See more details on using hashes here.

Provenance

The following attestation bundles were made for damagescanner-1.0.0b1.tar.gz:

Publisher: publish.yml on VU-IVM/DamageScanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file damagescanner-1.0.0b1-py3-none-any.whl.

File metadata

  • Download URL: damagescanner-1.0.0b1-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for damagescanner-1.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc301cbff2940a1a91333ad827dc63de5249ec6db3b0393f130b2ec369463f49
MD5 c448f59a9ed7d32fe81718d7442c9f1f
BLAKE2b-256 c3ff1e4ee788afd80a4c5341216135285bb1acb192a33b6592f631613fee90f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for damagescanner-1.0.0b1-py3-none-any.whl:

Publisher: publish.yml on VU-IVM/DamageScanner

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