This project has been archived by its maintainers, and is no longer receiving any updates.
Tool to create data cubes using data retrieved from STAC catalogs.
Usage
To exemplify the use of xarray-stac, the STAC catalog of the Brazil Data Cube project will be used as a basis. The first step is made with the search of some data in the catalog:
import stac.py
# getting data
bdc_stac_service = stac.STAC('http://brazildatacube.dpi.inpe.br/stac/')
collection = bdc_stac_service.collection('S2_10_16D_STK-1')
items = collection.get_items(filter={'bbox':'-61, 2.8, -60, 1.8', 'datetime':'2018-08-01/2019-07-31'})
Once with the data, you can use the cube_from_stac_collection function to create a data cube with the items collections that comes from the STAC catalog:
from xarray_stac.cube import cube_from_stac_collection
cube = cube_from_stac_collection(items['features'][0:2], ['NDVI', 'band08'])
Metadata
Release files for xarray-stac 0.0.21b0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xarray_stac-0.0.21b0.tar.gz | 3.9 kB | Without provenance | Details for xarray_stac-0.0.21b0.tar.gz |
Release files / xarray_stac-0.0.21b0.tar.gz
| Download URL | xarray_stac-0.0.21b0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6150e56f5498b6055f9490fcea10f0fdfe2f367f6f6380e40a5606044b1278b2
|
|
BLAKE2b-256 checksum How to use checksums |
20c78e1472fc9331865bd36844a976eee8effdf32bd80971ffd9f90da8582c29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
|
Security for xarray-stac 0.0.21b0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.