{
"cells": [
{
"cell_type": "markdown",
"id": "a66708a3",
"metadata": {},
"source": [
"# Searching the STAC Catalog\n",
"\n",
"Authors: Aimee Barciauskas (Development Seed)\n",
"\n",
"Date: December 13, 2022\n",
"\n",
"Description: This tutorial provides a basic introduction to searching the [MAAP STAC catalog](https://stac.maap-project.org/) using `pystac-client`.\n",
"\n",
"Another method of searching the STAC catalog is via the [STAC browser](https://stac-browser.maap-project.org).\n",
"\n",
"
\n"
]
},
{
"cell_type": "markdown",
"id": "521aa28d",
"metadata": {},
"source": [
"## About the STAC Catalog\n",
"\n",
"The MAAP STAC catalog provides discovery of a subset of MAAP datasets. These collections are hosted specifically through the MAAP STAC catalog and are typically not available on NASA's CMR. The data files have not been moved at all in the process of publishing datasets to STAC.\n",
"\n",
"Data will continue to be added to the STAC catalog with priority given to datasets which are known to be in-use by MAAP UWG members through S3 metrics, direct collaboration with data team members, and by request."
]
},
{
"cell_type": "markdown",
"id": "789cb9a5",
"metadata": {},
"source": [
"## Additional Resources\n",
"- [Pystac-client Introduction](https://pystac-client.readthedocs.io/en/stable/tutorials/pystac-client-introduction.html)"
]
},
{
"cell_type": "markdown",
"id": "27b6af81",
"metadata": {},
"source": [
"## Importing and Installing Packages\n",
"\n",
"In order to run this notebook you'll need the following packages:"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "e16c7c99",
"metadata": {},
"outputs": [],
"source": [
"%%capture\n",
"%pip install -U pystac-client"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "d20f803e",
"metadata": {},
"outputs": [],
"source": [
"from pystac_client import Client"
]
},
{
"cell_type": "markdown",
"id": "51a18e54",
"metadata": {},
"source": [
"## STAC Client\n",
"We first connect to an API by retrieving the root catalog, or landing page, of the API with the Client.open function."
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "404a8ab6",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"\n",
"