Skip to content

Commit 17f8971

Browse files
authored
Update IPPN workshop notebook (#337)
1 parent 0992479 commit 17f8971

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/workshops/IPPN_2024.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@
10001000
"metadata": {},
10011001
"outputs": [],
10021002
"source": [
1003-
"resampled_chm_data = chm_data.rio.reproject(crs, resolution=(0.1, 0.1))\n",
1003+
"resampled_chm_data = chm_data.rio.reproject_match(resampled_data)\n",
10041004
"resampled_chm_data.shape"
10051005
]
10061006
},
@@ -1346,11 +1346,11 @@
13461346
"metadata": {},
13471347
"outputs": [],
13481348
"source": [
1349-
"sam2.region_groups(\n",
1350-
" image,\n",
1349+
"da, gdf = sam2.region_groups(\n",
1350+
" \"masks2.tif\",\n",
13511351
" connectivity=1,\n",
13521352
" min_size=10,\n",
1353-
" max_size=1000,\n",
1353+
" max_size=2000,\n",
13541354
" intensity_image=\"chm_202206.tif\",\n",
13551355
" out_image=\"objects.tif\",\n",
13561356
" out_csv=\"objects.csv\",\n",
@@ -1484,7 +1484,7 @@
14841484
"name": "python",
14851485
"nbconvert_exporter": "python",
14861486
"pygments_lexer": "ipython3",
1487-
"version": "3.12.7"
1487+
"version": "3.11.8"
14881488
}
14891489
},
14901490
"nbformat": 4,

0 commit comments

Comments
 (0)