Skip to main content

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

Metadata

Release files for coastal-resilience-utilities 0.1.37

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coastal-resilience-utilities 0.1.37
File Size Uploaded Provenance Actions
coastal_resilience_utilities-0.1.37.tar.gz 329.2 kB Without provenance Details for coastal_resilience_utilities-0.1.37.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for coastal-resilience-utilities 0.1.37
File Interpreter ABI Platform Actions
coastal_resilience_utilities-0.1.37-py3-none-any.whl Python 3 none any Details for coastal_resilience_utilities-0.1.37-py3-none-any.whl

Total release size: 678.8 kB

Release files / coastal_resilience_utilities-0.1.37.tar.gz

Download URL coastal_resilience_utilities-0.1.37.tar.gz
Size 329.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2eac200580e2c08ce6693bb26e285fd3a8e2b1aa6014d9dacda6bc914d769838
BLAKE2b-256 checksum
How to use checksums
f3dc80590259a97b0dbe8fc6b4e94731137dc84a734e0fdbea2ab93188cd0b60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.8

Release files / coastal_resilience_utilities-0.1.37-py3-none-any.whl

Download URL coastal_resilience_utilities-0.1.37-py3-none-any.whl
Size 349.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39e8fc64d1b72f6b187d825ed2ef181c1622a3983fe050b12c502ce687daaeaa
BLAKE2b-256 checksum
How to use checksums
73d4dd41975d32a536df2c15eb8c51aceadeb4c0d2c079beeac2c67c053419c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.8

Security for coastal-resilience-utilities 0.1.37

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.37 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page