Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix items and collection download and pypgstac installation #181

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading