Skip to main content

A stactools package for the Global Mangrove Watch dataset

Project description

stactools-global-mangrove-watch

PyPI GitHub Workflow Status (with event)

This package can be used to generate STAC metadata for the Global Mangrove Watch Dataset.

Details

  • It is assumed that the raw files have been downloaded from the source and unzipped in a persistent storage location in order to provide proper hrefs for the STAC assets.
  • Each item represents a particular year (1996, 2007, 2008, etc) with assets for the annual mangrove mask raster (cog) and the 1996-{year} change raster (change_cog).
    • The vector files are not yet added as assets

STAC examples

Installation

pip install stactools-global-mangrove-watch

Command-line usage

Create a collection json:

stac global-mangrove-watch create-collection {destination}

Create an item json:

stac global-mangrove-watch create-item {cog_asset_href} {destination}

Use stac global-mangrove-watch --help to see all subcommands and options.

Contributing

We use pre-commit to check any changes. To set up your development environment:

uv sync
uv run pre-commit install

To check all files:

uv run pre-commit run --all-files

To run the tests:

uv run pytest -vv

If you've updated the STAC metadata output, update the examples:

uv run scripts/update-examples

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

stactools_global_mangrove_watch-0.2.2.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file stactools_global_mangrove_watch-0.2.2.tar.gz.

File metadata

File hashes

Hashes for stactools_global_mangrove_watch-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5a3d49c91143b9cf73a0124732c21990cd7eb46a2e56a345d63d348fb610e43c
MD5 5412c451328125dce61eee946e5b3d6a
BLAKE2b-256 8107c7b0eaa0b82b4200f7c167cf8d8bcb8ded1b8eaacc34b6d9cf620ba6c9aa

See more details on using hashes here.

File details

Details for the file stactools_global_mangrove_watch-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for stactools_global_mangrove_watch-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8a7b0c66171c1da48a9ba02ee1187ec591fc2b759b20fe8227329956d5a9b9ae
MD5 1e78097127e9190c1b75845964604f18
BLAKE2b-256 cae089b7b905b67987833c62b9fcc9facfc29775f37b112f06bba2e8562554a2

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