stactools package for the GLAD Global Forest Change dataset
Project description
stactools-glad-global-forest-change
- Name: glad-global-forest-change
- Package:
stactools.glad_global_forest_change - stactools-glad-global-forest-change on PyPI
- Owner: @hrodmn
- Dataset homepage
- STAC extensions used:
- Browse the example in human-readable form
- Browse a notebook demonstrating the example item and collection
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--cogsflag 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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stactools_glad_global_forest_change-0.1.2.tar.gz.
File metadata
- Download URL: stactools_glad_global_forest_change-0.1.2.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd9fed12224f140e27e2fb9061333d9f9db8832438761a3dda472fe013f582f7
|
|
| MD5 |
5e933f88534111d93c2a51790be5e1d2
|
|
| BLAKE2b-256 |
5abd5bf01d6a1e0937b62d02509a3c21a6276755c59ead7c8b7e8a44a0ff0f6d
|
File details
Details for the file stactools_glad_global_forest_change-0.1.2-py3-none-any.whl.
File metadata
- Download URL: stactools_glad_global_forest_change-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
061107446295a4f022d9bd0af75134ef6a22bcdc9b61743bda577aceece7f73f
|
|
| MD5 |
652842af05bd1c5fa2b1f5b392a91903
|
|
| BLAKE2b-256 |
0a3c0540471511ecdb8e718b3e73fa7a34f83d7f9593d1069e4f5d04474560cb
|