Skip to content

Commit

Permalink
Merge pull request #181 from developmentseed/docs/fix-maxar-demo
Browse files Browse the repository at this point in the history
fix items and collection download and pypgstac installation
  • Loading branch information
emileten authored Mar 5, 2024
2 parents 9d6ac74 + f2c191c commit 1ffda2f
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions demo/Maxar/eoAPI_Maxar_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
"outputs": [],
"source": [
"!python -m pip install pypgstac==0.8.1"
"!python -m pip install \"pypgstac[psycopg]==0.8.1\""
]
},
{
Expand All @@ -79,7 +79,7 @@
"outputs": [],
"source": [
"# Download the collections file\n",
"!curl https://raw.githubusercontent.com/vincentsarago/MAXAR_opendata_to_pgstac/main/collections_assets.json > collections.json"
"!wget https://github.com/vincentsarago/MAXAR_opendata_to_pgstac/raw/main/Maxar/collections.json"
]
},
{
Expand All @@ -90,7 +90,7 @@
"outputs": [],
"source": [
"# Download the items file\n",
"!curl https://raw.githubusercontent.com/vincentsarago/MAXAR_opendata_to_pgstac/main/items_s3.json > items.json"
"! wget https://github.com/vincentsarago/MAXAR_opendata_to_pgstac/raw/main/Maxar/items.json.zip && unzip items.json.zip && rm -rf items.json.zip"
]
},
{
Expand All @@ -103,7 +103,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 10,
"id": "af16cb95",
"metadata": {},
"outputs": [],
Expand All @@ -114,7 +114,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 11,
"id": "f7ded3bc",
"metadata": {
"scrolled": true
Expand All @@ -134,24 +134,12 @@
"\n",
"See https://github.com/stac-utils/pgstac/blob/main/docs/src/pgstac.md#pgstac-settings-variables\n",
"\n",
"The PgSTAC Context extension is not enabled by default because it's \"slows\" down the `/search` request but for this Demo we want it enabled.\n",
"\n",
"**Requirements**: `psycopg[binary]`"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "11c68484",
"metadata": {},
"outputs": [],
"source": [
"!python -m pip install psycopg[binary]"
"The PgSTAC Context extension is not enabled by default because it's \"slows\" down the `/search` request but for this Demo we want it enabled."
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 12,
"id": "dc3fa136",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -1039,7 +1027,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.17"
"version": "3.11.7"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 1ffda2f

Please sign in to comment.