Skip to content

Commit

Permalink
Update GEDI notebook example (#637)
Browse files Browse the repository at this point in the history
* Update GEDI notebook example

* Clean up notebook
  • Loading branch information
giswqs authored Dec 8, 2023
1 parent 1b07cbd commit 9d12386
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/notebooks/85_gedi.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@
"metadata": {},
"outputs": [],
"source": [
"gdf = leafmap.h5_to_gdf('data/*.h5', dataset='BEAM0110', columns=['agbd'], nodata=-9999)\n",
"try:\n",
" gdf = leafmap.h5_to_gdf('data/*.h5', dataset='BEAM0110', columns=['agbd'], nodata=-9999)\n",
"except:\n",
" # Download the sample data if the above code fails\n",
" gdf = leafmap.geojson_to_gdf('https://github.com/opengeos/data/releases/download/v1.0.0/gedi_sample.geojson')\n",
"gdf.head()"
]
},
Expand Down
11 changes: 11 additions & 0 deletions docs/notebooks/86_add_markers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://i.imgur.com/pKfZrdd.png)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -154,6 +161,10 @@
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
6 changes: 5 additions & 1 deletion examples/notebooks/85_gedi.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@
"metadata": {},
"outputs": [],
"source": [
"gdf = leafmap.h5_to_gdf('data/*.h5', dataset='BEAM0110', columns=['agbd'], nodata=-9999)\n",
"try:\n",
" gdf = leafmap.h5_to_gdf('data/*.h5', dataset='BEAM0110', columns=['agbd'], nodata=-9999)\n",
"except:\n",
" # Download the sample data if the above code fails\n",
" gdf = leafmap.geojson_to_gdf('https://github.com/opengeos/data/releases/download/v1.0.0/gedi_sample.geojson')\n",
"gdf.head()"
]
},
Expand Down
11 changes: 11 additions & 0 deletions examples/notebooks/86_add_markers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://i.imgur.com/pKfZrdd.png)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -154,6 +161,10 @@
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 9d12386

Please sign in to comment.