Skip to main content

A utility package for coastal resilience analysis.

Project description

Coastal Resilience Utilities

This repository contains utilities for coastal resilience analysis and design.

Contents

  • damage_assessment: damage assessments based on earth observation data and National Structure Inventory.
  • damage_assessment_nsi_blocks: damage assessments based on HAZUS blocks.
  • mosaic: Mosaicking datasets.
  • summary_stats: Summarize raster datasets using vector points and polygons.
  • utils: A variety of functionality for doing geospatial analysis. Rasterize, vectorize, fetch features from OSM/OpenBuildings/ArcOnline, extract values from rasters.

Installation

There are a few ways to install and use this code:

Option 1: Conda Use the included conda environment to create a new environment and install the package. From this directory, run:

conda env create -f environment.yml

Option 2: Docker and Makefile This option is better if you are doing active development, which might include volume mounting of other repos.

From this directory, run:

make build-and-run

There are two env files:

  • .env.publish, which is used to publish the package to PyPI using Twine and UV
  • .env.data, which maps files necessary for damage assessment, such as NSI, OpenBuildings, etc.

Publishing

To publish a new version of the package, run:

make publisher
pytest
uv build
uv publish

We're using a slightly convoluted method of publishing, since we aren't yet set up to publish to Conda. This means we publish using UV and PyPI, and downstream clients have to install with pip into a conda environment.

Thus it's important to keep the pyproject.toml file up to date with the environment.yml file.

Schematic

The Figjam schematic can be found here

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

coastal_resilience_utilities-0.1.33.tar.gz (329.8 kB view details)

Uploaded Source

Built Distribution

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

coastal_resilience_utilities-0.1.33-py3-none-any.whl (350.3 kB view details)

Uploaded Python 3

File details

Details for the file coastal_resilience_utilities-0.1.33.tar.gz.

File metadata

File hashes

Hashes for coastal_resilience_utilities-0.1.33.tar.gz
Algorithm Hash digest
SHA256 8d3310263abed5b35e5986df9f208c61a41947ddcf301bb71e1907b980287233
MD5 d87f5b4c9fa3292c07404b409bd0b7ce
BLAKE2b-256 a6753120678b61cd5cac561a1a453f480822bcd5e39a70359aa689d50af0cf7f

See more details on using hashes here.

File details

Details for the file coastal_resilience_utilities-0.1.33-py3-none-any.whl.

File metadata

File hashes

Hashes for coastal_resilience_utilities-0.1.33-py3-none-any.whl
Algorithm Hash digest
SHA256 b2a364baa02234f119a04d35132ebb6c9d3816be11fbd1aa494bf32b4ac3cd94
MD5 89e1ada71da91aaccc3ad6771f3f4e0c
BLAKE2b-256 fde1154566ee2b65e10d80a99f8630277832642420020cfa8b7a5cdce2d73d99

See more details on using hashes here.

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