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.34.tar.gz (329.0 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.34-py3-none-any.whl (349.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for coastal_resilience_utilities-0.1.34.tar.gz
Algorithm Hash digest
SHA256 15e7fe7a8124f47123a93100ea96867ba477cc1a857c7e3f61ad1931b223a888
MD5 0403ccf5939e46f5e8aeda0e59d3db6c
BLAKE2b-256 dc3f1ceafd7883f86bc48ef5960b90765af30043282e52e634d89d41642c28a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for coastal_resilience_utilities-0.1.34-py3-none-any.whl
Algorithm Hash digest
SHA256 8e9a9d8404cc82d10794280fdf3716d436ccdb2e5e14eceb088ec0e298b4df78
MD5 e0e180504591a1d3e2ae61f8762739aa
BLAKE2b-256 7dc26c9d4af308213ae7aceee1223633516223e845519b7a4908bee30128afbc

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