Skip to main content

stactools-glad-global-forest-change

PyPI GitHub Workflow Status (with event)

STAC examples

Installation

pip install stactools-glad-global-forest-change

Command-line usage

By default, stactools-glad-global-forest-change will assume that you are generating STAC metadata for the original files which are stored in a Google storage container and publicly available over HTTP.

stac gladglobalforestchange create-collection {destination}

stac gladglobalforestchange create-item \
  https://storage.googleapis.com/earthenginepartners-hansen/GFC-2023-v1.11/Hansen_GFC-2023-v1.11_gain_40N_080W.tif \
  https://storage.googleapis.com/earthenginepartners-hansen/GFC-2023-v1.11/Hansen_GFC-2023-v1.11_treecover2000_40N_080W.tif \
  https://storage.googleapis.com/earthenginepartners-hansen/GFC-2023-v1.11/Hansen_GFC-2023-v1.11_lossyear_40N_080W.tif \
  https://storage.googleapis.com/earthenginepartners-hansen/GFC-2023-v1.11/Hansen_GFC-2023-v1.11_datamask_40N_080W.tif \
  /tmp/item.json    

[!WARNING]
These files are not cloud-optimized geotiffs (COGs)! Be aware that this has major performance implications for applications that consume the data from these assets. Consider creating a copy of the files in the COG format and providing the --cogs flag to indicate that the assets are COGs.

Use stac gladglobalforestchange --help to see all subcommands and options.

Create COGs

The original files hosted on the Google Earth Engine are not cloud-optimized geotiffs (COGs). This is a problem for many applications so we added the create-cogs function to convert the underlying assets to COGs and copy them to a new storage location (either a local directory or an S3 bucket).

stac gladglobalforestchange create-cogs {assets} {destination} 

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

Metadata

Release files for stactools-glad-global-forest-change 0.1.2

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

Source distribution (sdist)

Source distribution for stactools-glad-global-forest-change 0.1.2
File Size Uploaded
stactools_glad_global_forest_change-0.1.2.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stactools-glad-global-forest-change 0.1.2
File Interpreter ABI Platform
stactools_glad_global_forest_change-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 26.5 kB

Release files / stactools_glad_global_forest_change-0.1.2.tar.gz

Download URL stactools_glad_global_forest_change-0.1.2.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cd9fed12224f140e27e2fb9061333d9f9db8832438761a3dda472fe013f582f7
BLAKE2b-256 checksum
How to use checksums
5abd5bf01d6a1e0937b62d02509a3c21a6276755c59ead7c8b7e8a44a0ff0f6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / stactools_glad_global_forest_change-0.1.2-py3-none-any.whl

Download URL stactools_glad_global_forest_change-0.1.2-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
061107446295a4f022d9bd0af75134ef6a22bcdc9b61743bda577aceece7f73f
BLAKE2b-256 checksum
How to use checksums
0a3c0540471511ecdb8e718b3e73fa7a34f83d7f9593d1069e4f5d04474560cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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