Skip to content

Commit

Permalink
notebook fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterprovoost committed Oct 10, 2024
1 parent 85f3ae0 commit a19649c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebooks/Python/speciesgrids_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"# speciesgrids demo\n",
"\n",
"This notebook demonstrates querying the speciesgrids data product using geopandas and duckdb. The examples use the `s3://obis-products/speciesgrids/h3_7/` remote datasource as default. To query a local copy instead, use the local file path.\n",
"This notebook demonstrates querying the speciesgrids data product using geopandas and duckdb. The examples use the `s3://obis-products/speciesgrids/h3_7/` remote datasource as default. To query a local copy instead for better performance, use the local file path.\n",
"\n",
"## Regional species list using duckdb\n",
"\n",
Expand Down Expand Up @@ -54,7 +54,7 @@
"source": [
"## Species distributions using geopandas\n",
"\n",
"This example uses geopandas to query the gridded product with H3 resolution 7 to obtain species distributions for the genus Abra, and lonboard to visualize the distributions on a map."
"This example uses geopandas to query the gridded product with H3 resolution 7 to obtain species distributions for the genus Gadus, and lonboard to visualize the distributions on a map."
]
},
{
Expand All @@ -67,7 +67,7 @@
"import lonboard\n",
"import seaborn as sns\n",
"\n",
"filters = [(\"genus\", \"==\", \"Abra\")]\n",
"filters = [(\"genus\", \"==\", \"Gadus\")]\n",
"gdf = geopandas.read_parquet(\"s3://obis-products/speciesgrids/h3_7/\", filters=filters)[[\"cell\", \"records\", \"geometry\", \"species\"]]\n",
"\n",
"def generate_colors(unique_species):\n",
Expand Down

0 comments on commit a19649c

Please sign in to comment.