Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darrenwiens/stac-nb
STAC in Jupyter Notebooks
https://github.com/darrenwiens/stac-nb
Last synced: 3 months ago
JSON representation
STAC in Jupyter Notebooks
- Host: GitHub
- URL: https://github.com/darrenwiens/stac-nb
- Owner: darrenwiens
- License: mit
- Created: 2021-10-01T04:53:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-22T17:40:34.000Z (about 2 years ago)
- Last Synced: 2024-07-15T21:37:54.584Z (4 months ago)
- Language: Python
- Size: 73.2 KB
- Stars: 33
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-earthobservation-code - stac-nb - STAC in Jupyter Notebooks `Python` (`Python` processing of optical imagery (non deep learning) / Cloud Native Geospatial)
README
stac-nb
=================STAC in Jupyter Notebooks
-------------------------.. image:: https://readthedocs.org/projects/stac-nb/badge/?version=latest&style=flat
:target: https://stac-nb.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://badge.fury.io/py/stac-nb.svg
:target: https://badge.fury.io/py/stac-nb
:alt: PyPI Status
.. image:: https://coveralls.io/repos/github/darrenwiens/stac-nb/badge.svg?branch=main
:target: https://coveralls.io/github/darrenwiens/stac-nb?branch=main
.. image:: https://github.com/darrenwiens/stac-nb/actions/workflows/python-package.yml/badge.svg
:alt: Build StatusInstall
-------------------------
::pip install stac-nb
Usage
-------------------------.. usage_label
To use stac-nb in a project, start Jupyter Lab (``jupyter lab``), create a new notebook, then::
from stac_nb import STAC_Query_UI
Display the UI for a STAC API::
ui = STAC_Query_UI("https://earth-search.aws.element84.com/v0")
ui.display()After you have run the query, retrieve the results from ``ui.query_results``::
ui.query_results
The statement above will render a visual list component, including an interactive map and a
multitude of other richly stylized elements.The list of pystac.Items returned from the query may be used further in Python, like::
list(ui.query_results)