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.35.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.35-py3-none-any.whl (349.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for coastal_resilience_utilities-0.1.35.tar.gz
Algorithm Hash digest
SHA256 dc615ec8707e7a4f4a4dab3e17ba3a1b27e73e960cf0d985bb0adbe7eaad62f2
MD5 8615f6cf46015002e3f10ec364668eea
BLAKE2b-256 e609bde8782df069e4c548eb18dfecef449ff98b5a9862bcec0d54f632f40086

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for coastal_resilience_utilities-0.1.35-py3-none-any.whl
Algorithm Hash digest
SHA256 a46c116d261e5cf9a5e85af898c0e3c4dd458e1a4eb8455ae527abe2ce91ba64
MD5 0c66227d70d593acda40b076410d41de
BLAKE2b-256 fce9f8438e82d2d530199c4268c9a7ff0c6e1afcb9e6a37c015fc99b89b12c72

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