Skip to main content

An intake adapter for building intake catalogs begining with SpatioTemporal Asset Catalogs (STAC)

Project description

Intake-STAC

CI Binder PyPI version Documentation Status codecov

This is an Intake data source for SpatioTemporal Asset Catalogs (STAC). The STAC specification provides a common metadata specification, API, and catalog format to describe geospatial assets, so they can more easily indexed and discovered. A 'spatiotemporal asset' is any file that represents information about the earth captured in a certain space and time.

Intake-STAC provides an opinionated way for users to load Assets from STAC catalogs into the scientific Python ecosystem. It uses the intake-xarray plugin and supports several file formats including GeoTIFF, netCDF, GRIB, and OpenDAP.

Installation

Intake-STAC has a few requirements, such as Intake, intake-xarray and pystac. Intake-stac can be installed in any of the following ways:

We recommend installing the latest release with conda:

$ conda install -c conda-forge intake-stac

Or the latest development version with pip:

$ pip install git+https://github.com/intake/intake-stac

Quickstart

import intake

catalog_url = 'https://www.planet.com/data/stac/catalog.json'
cat = intake.open_stac_catalog(catalog_url)

collection = cat['planet-disaster-data']
subset = collection['hurricane-harvey']['hurricane-harvey-0831']
item = subset['Houston-East-20170831-103f-100d-0f4f-RGB']

da = item['thumbnail'].to_dask()
da

The examples/ directory contains several Jupyter Notebooks illustrating common workflows.

STAC Index is a convenient website for finding datasets with STACs

Versions

To install a specific version of intake-stac, specify the version in the install command

pip install intake-stac==0.4.0

The table below shows the corresponding versions between intake-stac and STAC:

intake-stac STAC
0.2.x 0.6.x
0.3.x 1.0.0-betaX
0.4.x 1.0.0

About

intake-stac was created as part of the Pangeo initiative under support from the NASA-ACCESS program. See the initial design document.

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

intake_stac-0.4.0.tar.gz (39.8 kB view details)

Uploaded Source

Built Distribution

intake_stac-0.4.0-py2.py3-none-any.whl (9.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file intake_stac-0.4.0.tar.gz.

File metadata

  • Download URL: intake_stac-0.4.0.tar.gz
  • Upload date:
  • Size: 39.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for intake_stac-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9243fbe85dfde12780314c4add858cd5c936174362e6096881b4a2324a11ef84
MD5 dca20ded0a2d15fac9ab770104075c55
BLAKE2b-256 33ba71d6e3e3aab8bb7936bd8ae700dfefbbd8efff3076c89b60fafbe4016e80

See more details on using hashes here.

File details

Details for the file intake_stac-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for intake_stac-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ac1ff728485675b75d9585cace675da5f0a371e7c4ee717314620a60ad248f4f
MD5 f32fce727b923088c28c60bf709ab429
BLAKE2b-256 658d77e28fa09342691e8bc7e250486259ce525321f75fb9446bf49c78229894

See more details on using hashes here.

Supported by

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