unsafe

A package for adding parametric uncertainty to the national structure inventory and estimating flood losses with uncertain depth-damage relationships

https://github.com/abpoll/unsafe

Science Score: 57.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.2%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

A package for adding parametric uncertainty to the national structure inventory and estimating flood losses with uncertain depth-damage relationships

Basic Info
  • Host: GitHub
  • Owner: abpoll
  • License: bsd-2-clause
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 9.19 MB
Statistics
  • Stars: 7
  • Watchers: 4
  • Forks: 1
  • Open Issues: 8
  • Releases: 2
Created almost 3 years ago · Last pushed 10 months ago
Metadata Files
Readme License Citation

README.md

Uncertain Structure and Fragility Ensemble (UNSAFE) framework for property-level flood risk estimation

Version License Maintenance

UNSAFE is an open-source framework for estimating property-level flood risk that explicitly accounts for uncertainties in exposure and vulnerability.

Table of Contents

Overview

The Uncertain Structure and Fragility Ensemble (UNSAFE) framework enhances a property-level risk assessment framework common in academic research and practice (e.g., Federal Emergency Management Agency (FEMA) loss avoidance studies, United States Army Corps of Engineers (USACE) feasibility studies). At a high-level, UNSAFE:

  1. Adds parametric uncertainty to the National Structure Inventory dataset (uncertainty in exposure)
  2. Facilitates the use of multiple, potentially conflicting, expert-based Depth-Damage Functions (uncertainty in vulnerability)
  3. Provides a consistent framework for estimating flood damages from any inundation model output

Statement of Need

Flooding is a frequent, widespread, and damaging natural hazard in the United States. Research and practice increasingly estimate economic flood damage at the property level to inform management practices and policies. Economic flood damage is often estimated as a function of:

  • Hazard: The features of a flood over space and time
  • Exposure: The assets that experience inundation from a flood
  • Vulnerability: The susceptibility of exposed assets to damage for a set of flood feature

Property-level economic flood risk assessments often overlook uncertainty in these inputs. When uncertainty is incorporated, it is more common to account for uncertainty in flood hazard than in exposure or vulnerability. Although it is a common finding that flood risk estimates are most sensitive to uncertainty in flood hazard estimates, overlooking uncertainty in exposure and vulnerability can bias risk estimates.

UNSAFE aims to fill the need for a published, free, and open-source tool for representing exposure and vulnerability under uncertainty for flood-risk estimation in the U.S. We invite others to contribute to this project to help standardize best practices in the estimation of flood risk under uncertainty, improve reusability and efficiency, expand functionality for more use-cases, and maintain a state-of-the-art risk estimation codebase that is free and usable by any interested party.

Installation

There are two ways to install UNSAFE.

Option 1: For Users

If you just want to use UNSAFE, install with pip install git+https://github.com/abpoll/unsafe.

Option 2: For Developers

If you want to edit the source code and/or run examples:

  1. Clone the repository into your project directory: bash git clone https://github.com/abpoll/unsafe.git cd unsafe
  2. Create and activate the environment bash conda env create -f examples/env/environment.yml conda activate unsafe
  3. Install UNSAFE in development mode: pip install -e .

Examples

We provide annotated, comprehensive examples to help get you started:

  1. Partial Data Example: A tutorial with all the required data included in the repository.
    • Location: examples/philadelphia_frd/notebooks/partial_data_example.ipynb
  2. Full Data Example: A more comprehensive example that requires an external data download
    • Location: examples/philadelphia_frd/notebooks/full_data_examples.ipynb

We recommend reading the README.md in the root of the examples/ directory before working through either example.

Documentation

  • Technical Documentation: Available in the docs/ directory, currently v01.pdf
  • API Reference: Coming soon! We're working on making the documentation more modern, including a comprehensive API documentation.

Contributions

We warmly welcome contributions from the community! If you're interested in contributing to UNSAFE, we'd love to have you involved. Feel free to engage with the development team on GitHub - we're excited to collaborate with you.

To get started, simply fork the repository and run pip install -e . from the project root to set up your local environment for testing and development.

We look forward to working with you to make UNSAFE even better!

License

This project is licensed under the BSD-2-Clause License. Please see the LICENSE file for details.

Citation

UNSAFE is currently under review at the Journal of Open Source Software (JOSS). If you use UNSAFE in your research, please cite the preprint: Pollack, A., Doss-Gollin, J., Srikrishnan, V., & Keller, K. (2024, May 20). UNSAFE: An UNcertain Structure And Fragility Ensemble framework for property-level flood risk estimation. https://doi.org/10.31219/osf.io/jb9ta

We will update the citation when the review at JOSS is finished.

Acknowledgements

Contributions to the initial v0.1 of UNSAFE * AP: conceptualization, software development, software testing, project management, JOSS paper original draft, JOSS paper review and editing * JDG: conceptualization, software testing, methodology, JOSS paper review and editing * VS: conceptualization, methodology, JOSS paper review and editing * KK: conceptualization, methodology, JOSS paper review and editing

Owner

  • Name: Adam Pollack
  • Login: abpoll
  • Kind: user
  • Location: Hanover, NH
  • Company: Dartmouth College

Postdoctoral research associate @ Dartmouth College.

JOSS Publication

UNSAFE: An UNcertain Structure And Fragility Ensemble framework for property-level flood risk estimation
Published
November 13, 2025
Volume 10, Issue 115, Page 7527
Authors
Adam Pollack ORCID
Thayer School of Engineering, Dartmouth College, USA, School of Earth, Environment, and Sustainability, University of Iowa, USA
James Doss-Gollin ORCID
Department of Civil and Environmental Engineering, Rice University, USA
Vivek Srikrishnan ORCID
Department of Biological and Environmental Engineering, Cornell University, USA
Klaus Keller ORCID
Thayer School of Engineering, Dartmouth College, USA
Editor
Ana Trisovic ORCID
Tags
flood risk uncertainty climate impacts natural disasters

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: UNSAFE
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Adam
    family-names: Pollack
    orcid: 'https://orcid.org/0000-0001-6642-0591'
    affiliation: Dartmouth College
  - given-names: James
    family-names: Doss-Gollin
    affiliation: Rice University
    orcid: 'https://orcid.org/0000-0002-3428-2224'
  - given-names: Vivek
    family-names: Srikrishnan
    affiliation: Cornell University
    orcid: 'https://orcid.org/0000-0003-0049-3805'
  - given-names: Klaus
    family-names: Keller
    affiliation: Dartmouth College
    orcid: 'https://orcid.org/0000-0002-5451-8687'
identifiers:
  - type: doi
    value: 10.31219/osf.io/jb9ta
repository-code: 'https://github.com/abpoll/unsafe'
abstract: >-
  A software package for adding parametric uncertainty to
  the national structure inventory and estimating flood
  losses with uncertain depth-damage relationships.
keywords:
  - flood risk
  - uncertainty
  - monte carlo
  - depth-damage function
license: BSD-2-Clause
commit: 0f36bb02f5e30ad6d7302bef956a6ce5e2a92b63
version: v0.1
date-released: '2024-05-14'

GitHub Events

Total
  • Issues event: 4
  • Watch event: 1
  • Issue comment event: 13
  • Push event: 19
  • Pull request event: 1
  • Create event: 1
Last Year
  • Issues event: 4
  • Watch event: 1
  • Issue comment event: 13
  • Push event: 19
  • Pull request event: 1
  • Create event: 1

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 2
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 3 months
  • Total issue authors: 2
  • Total pull request authors: 1
  • Average comments per issue: 4.0
  • Average comments per pull request: 1.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 3 months
  • Issue authors: 2
  • Pull request authors: 1
  • Average comments per issue: 4.0
  • Average comments per pull request: 1.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jdossgollin (4)
  • abpoll (3)
  • erexer (1)
Pull Request Authors
  • jdossgollin (1)
  • abpoll (1)
Top Labels
Issue Labels
enhancement (3) good first issue (2)
Pull Request Labels