Skip to main content

GLAD Land Use Land Cover 2020 stactools packages

Project description

stactools-glad-glclu2020

PyPI GitHub Workflow Status (with event)

A short description of the package and its usage.

STAC examples

Installation

pip install stactools-glad-glclu2020

Command-line usage

By default, stactools-glad-glclu2020 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 gladlclu2020 create-collection \
  --sample-asset-href https://storage.googleapis.com/earthenginepartners-hansen/GLCLU2000-2020/v2/2000/50N_090W.tif \
  {destination}

stac gladlclu2020 create-item \
  https://storage.googleapis.com/earthenginepartners-hansen/GLCLU2000-2020/v2/2000/50N_090W.tif \
  {destination}

[!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.

If you have created your own copy of the data in a different storage container, you can provide a custom URL format for the assets with the --href-format parameter in the create-item command:

stac gladlclu2020 create-collection \
  --sample-asset-href {sample_tif_url} \
  {destination}

stac gladlclu2020 create-item \
  --href-format s3://bucket/glad/GLCLU2000-2020/{version}/{year}/{loc}.tif \
  {cog_href} \
  {destination}

Use stac glad-glclu2020 --help to see all subcommands and options.

Contributing

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

uv venv && uv sync --extra dev
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_glad_glclu2020-0.1.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

stactools_glad_glclu2020-0.1.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file stactools_glad_glclu2020-0.1.0.tar.gz.

File metadata

File hashes

Hashes for stactools_glad_glclu2020-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fed0466d81f49cee25fe7063df02a5621c6df6ce392babd2cb018b3e57faeb96
MD5 f41e8f70cbad97479a56972f05ca3f59
BLAKE2b-256 2f949cf2c1d6f79fbc14a34f4e4e741f577814ff0e1afd85327a43b062cc343d

See more details on using hashes here.

File details

Details for the file stactools_glad_glclu2020-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stactools_glad_glclu2020-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba4f80f6850768ba13299aa0e9f46daa944d60bb9c490be0e0f535ab481516cb
MD5 f541b02040a8a20368c8598697f4f6ff
BLAKE2b-256 e3e6b66e238d1d0b1f3b0c8bbdfb513e00de851885438c52294a7e199cb946d4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page