Skip to main content

Tooling for converting STAC metadata to ODC data model

Project description

odc.stac

Documentation Status Test Status Test Coverage Run Examples in Binder

Load STAC items into xarray Datasets. Process locally or distribute data loading and computation with Dask.

Usage

odc.stac.load

catalog = pystac_client.Client.open(...)
query = catalog.search(...)
xx = odc.stac.load(
    query.get_items(),
    bands=["red", "green", "blue"],
)
xx.red.plot.imshow(col="time")

For more details see Documentation and Sample Notebooks, or try it out on Binder.

Installation

Using pip

pip install odc-stac

To install with botocore support (for working with AWS):

pip install 'odc-stac[botocore]'

Using Conda

This package is be available on conda-forge channel:

conda install -c conda-forge odc-stac

From unreleased source

To use development version of odc-stac install dependencies from conda, then install odc-stac with pip.

Sample environment.yml is provided below.

channels:
  - conda-forge
dependencies:
  - odc-geo >=0.1.3
  - xarray >=0.20.1
  - numpy
  - dask
  - pandas
  - affine
  - rasterio
  - toolz
  - pystac
  - pystac-client
  - pip =22
  - pip:
    - "git+https://github.com/opendatacube/odc-stac/"

Developing

To develop odc-stac locally using pip (assuming you have virtualenvwrapper installed):

git clone https://github.com/opendatacube/odc-stac
cd odc-stac
mkvirtualenv odc-stac
pip install -e .
pip install -r requirements-dev.txt

Run tests with pytest:

pytest

Linting is provided by mypy, pylint, and black:

black --check .
pylint -v odc
mypy odc

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

odc-stac-0.3.8.tar.gz (64.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odc_stac-0.3.8-py3-none-any.whl (56.7 kB view details)

Uploaded Python 3

File details

Details for the file odc-stac-0.3.8.tar.gz.

File metadata

  • Download URL: odc-stac-0.3.8.tar.gz
  • Upload date:
  • Size: 64.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for odc-stac-0.3.8.tar.gz
Algorithm Hash digest
SHA256 87a3246590c2f301c0ef2bc4d0e91a896c8866173b38991b45e020cc07e19dc6
MD5 487aefa25431e7b7fc80ad20a2c6c4d8
BLAKE2b-256 1acb3b3ca77fc3715f114aa7c26ec2c157182df8cda53d1698e1897db25a0892

See more details on using hashes here.

File details

Details for the file odc_stac-0.3.8-py3-none-any.whl.

File metadata

  • Download URL: odc_stac-0.3.8-py3-none-any.whl
  • Upload date:
  • Size: 56.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for odc_stac-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b02beccef016832b16925dc9655bd9706b29b0f070e5685b7b132bb7e7e15cbf
MD5 bb0217b01c5cf4556b00bb19cced756d
BLAKE2b-256 2cafe17c9a4ce7c2922733c1050743fe283ae17f7c3e068eece2bc39fc69e9d5

See more details on using hashes here.

Supported by

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