Metadata-Version: 2.1
Name: odc-stac
Version: 0.2.0a7
Summary: Tooling for converting STAC metadata to ODC data model
Home-page: https://github.com/opendatacube/odc-tools/
Author: Open Data Cube
Author-email: 
Maintainer: Open Data Cube
Maintainer-email: 
License: Apache License 2.0
Project-URL: Documentation, https://odc-stac.readthedocs.io/en/latest/
Project-URL: Bug Reporting, https://github.com/opendatacube/odc-tools/issues
Platform: any
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: GIS
Requires-Python: >=3.6
Description-Content-Type: text/x-rst

odc.stac
########

|Test Status| |Documentation Status|

Tooling for converting STAC metadata to ODC data model.

Usage
#####


odc.stac.load
~~~~~~~~~~~~~

.. code-block:: python

   catalog = pystac.Client.open(...)
   query = catalog.search(...)
   xx = odc.stac.load(
       query.get_items(),
       bands=["red", "green", "blue"],
       crs="EPSG:32606",
       resolution=(-100, 100),
   )
   xx.red.plot.imshow(col="time")



Installation
############

Using pip
~~~~~~~~~

.. code-block:: bash

   pip install odc-stac


Using Conda
~~~~~~~~~~~

Currently conda package is not done yet. It's best to install dependencies
using conda then install ``odc-stac`` with pip. Sample ``environment.yml`` is
provided below.


.. code-block:: yaml

   channels:
     - conda-forge
   dependencies:
     - datacube>=1.8.5
     - xarray
     - numpy
     - pandas
     - affine
     - rasterio
     - toolz
     - jinja2
     - pystac
     - pip=20
     - pip:
       - odc-stac



.. |Documentation Status| image:: https://readthedocs.org/projects/odc-stac/badge/?version=latest
   :target: https://odc-stac.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

.. |Test Status| image:: https://github.com/opendatacube/odc-tools/actions/workflows/main.yml/badge.svg
   :target: https://github.com/opendatacube/odc-tools/actions/workflows/main.yml
   :alt: Test Status


