- Name: datacube
- Package:
stactools.datacube - stactools-datacube on PyPI
- Owner: @constantinius
- STAC extensions used:
- Browse the example in human-readable form
This stactools extension package allows to create or extend STAC Items
dealing with multi-dimensional data formats and to extract datacube related
metadata from these assets.
This extension relies on the GDAL multi-dimensional raster capabilities via the official Python API.
pip install "pygdal==$(gdal-config --version).*"
pip install stactools-datacubeThis command creates a new STAC Item from a multi-dimensional file like a netCDF:
stac datacube create-item source destinationThe following command extends an existing STAC Item, optionally by specifying an explicit asset:
stac datacube extend-item source --asset asset-nameUse stac datacube --help to see all subcommands and options.
We use pre-commit to check any changes. To set up your development environment:
pip install -e .
pip install -r requirements-dev.txt
pre-commit installTo check all files:
pre-commit run --all-filesTo run the tests:
pytest -vv