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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file coastal_resilience_utilities-0.1.37.tar.gz
.
File metadata
- Download URL: coastal_resilience_utilities-0.1.37.tar.gz
- Upload date:
- Size: 329.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eac200580e2c08ce6693bb26e285fd3a8e2b1aa6014d9dacda6bc914d769838 |
|
MD5 | 75609bf2eef10f4bf73113bce0b57e43 |
|
BLAKE2b-256 | f3dc80590259a97b0dbe8fc6b4e94731137dc84a734e0fdbea2ab93188cd0b60 |
File details
Details for the file coastal_resilience_utilities-0.1.37-py3-none-any.whl
.
File metadata
- Download URL: coastal_resilience_utilities-0.1.37-py3-none-any.whl
- Upload date:
- Size: 349.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39e8fc64d1b72f6b187d825ed2ef181c1622a3983fe050b12c502ce687daaeaa |
|
MD5 | e76bc694e2a8b6d6fa22151eea8bafb1 |
|
BLAKE2b-256 | 73d4dd41975d32a536df2c15eb8c51aceadeb4c0d2c079beeac2c67c053419c7 |