No project description provided
Project description
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'])
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
xarray_stac-0.0.2b0.tar.gz
(3.0 kB
view hashes)