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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stactools_glad_global_forest_change-0.1.2.tar.gz (13.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_glad_global_forest_change-0.1.2.tar.gz.

File metadata

File hashes

Hashes for stactools_glad_global_forest_change-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cd9fed12224f140e27e2fb9061333d9f9db8832438761a3dda472fe013f582f7
MD5 5e933f88534111d93c2a51790be5e1d2
BLAKE2b-256 5abd5bf01d6a1e0937b62d02509a3c21a6276755c59ead7c8b7e8a44a0ff0f6d

See more details on using hashes here.

File details

Details for the file stactools_glad_global_forest_change-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for stactools_glad_global_forest_change-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 061107446295a4f022d9bd0af75134ef6a22bcdc9b61743bda577aceece7f73f
MD5 652842af05bd1c5fa2b1f5b392a91903
BLAKE2b-256 0a3c0540471511ecdb8e718b3e73fa7a34f83d7f9593d1069e4f5d04474560cb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page