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

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.0rc3.tar.gz (47.4 kB view details)

Uploaded Source

Built Distribution

odc_stac-0.3.0rc3-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

Details for the file odc-stac-0.3.0rc3.tar.gz.

File metadata

  • Download URL: odc-stac-0.3.0rc3.tar.gz
  • Upload date:
  • Size: 47.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for odc-stac-0.3.0rc3.tar.gz
Algorithm Hash digest
SHA256 d1f7cfd8b9a7ab575d69932250b28ca87349f1e41f221299f1ac7409fbdc74d5
MD5 7d522f4251b0c348fe2aee250b1c2cd5
BLAKE2b-256 f66b7fb30ab1875b02d6d463dc76cb612062e021baa552312a9430098af1c0ed

See more details on using hashes here.

File details

Details for the file odc_stac-0.3.0rc3-py3-none-any.whl.

File metadata

  • Download URL: odc_stac-0.3.0rc3-py3-none-any.whl
  • Upload date:
  • Size: 53.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for odc_stac-0.3.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 62637513f9b3bc1dd702416153b02cf08907d77b373444c36eec5f5c1cc40932
MD5 9f751f6f38b2c3e9ac1093d2c0f81fa1
BLAKE2b-256 03ddb9466919d0104f0ace6d40abb8397e04705d6149f0b19d3d149744098a81

See more details on using hashes here.

Supported by

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