Create STAC Items from Sentinel-2 metadata
Project description
stactools-sentinel2
stactools package for Sentinel-2 data.
Running
pip install stactools-sentinel2
SAFE archive:
stac sentinel2 create-item tests/data-files/S2A_MSIL2A_20190212T192651_N0212_R013_T07HFE_20201007T160857.SAFE output/
AWS Open Data bucket sentinel-s2-l2a
:
stac sentinel2 create-item tests/data-files/S2A_OPER_MSI_L2A_TL_SGS__20181231T210250_A018414_T10SDG output/
Sentinel Hub metadata:
stac sentinel2 create-item --asset-href-prefix s3://sentinel-s2-l2a/tiles/34/L/BP/2022/4/1/0/ \
https://roda.sentinel-hub.com/sentinel-s2-l1c/tiles/34/L/BP/2022/4/1/0/ output
Note: this does not currently work with S3 buckets using requester-pays.
The flag --tolerance
can be set to a decimal value to define the simplification tolerance of the Item geometry.
This is a pass-through to the Shapely simplify method.
Development
Install pre-commit hooks with:
pre-commit install
Run these pre-commit hooks with:
pre-commit run --all-files
Install the code in the local python env so your IDE can see it:
pip install -e .
Run the tests with:
pytest -vvv
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
stactools-sentinel2-0.4.0.tar.gz
(18.7 kB
view hashes)
Built Distribution
Close
Hashes for stactools-sentinel2-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98dff668b0fbc513ea6f5a4fc6f1106069fa037192de301c44dde439e8f9211c |
|
MD5 | e65e8838866cc45357d61f6c8531c547 |
|
BLAKE2b-256 | 6177e2d724894e0c6e77bee66b96b360e6cdaeba5e6e8d66fb572c57331a99ce |
Close
Hashes for stactools_sentinel2-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1326372d3cb8ea072c822882d344a1fcf88c619c35f05834a6da1f3b48eac85d |
|
MD5 | 99ae6333585bcb886eaddc31ea91c0ab |
|
BLAKE2b-256 | 90e4ff49b4c576a891a9bf9c8ac76b63cc39ef28ee544d8db7b3828167723b6f |