Skip to content

Commit

Permalink
Update zonal stats function (#1854)
Browse files Browse the repository at this point in the history
* Update zonal stats function

* Fix docs build error
  • Loading branch information
giswqs authored Dec 19, 2023
1 parent 81d0249 commit efaf466
Show file tree
Hide file tree
Showing 38 changed files with 25,322 additions and 23,682 deletions.
1 change: 0 additions & 1 deletion docs/notebooks/00_geemap_colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "9646abfa",
"metadata": {},
"outputs": [],
"source": [
Expand Down
8 changes: 4 additions & 4 deletions docs/notebooks/12_zonal_statistics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"\n",
"# Allowed output formats: csv, shp, json, kml, kmz\n",
"# Allowed statistics type: MEAN, MAXIMUM, MINIMUM, MEDIAN, STD, MIN_MAX, VARIANCE, SUM\n",
"geemap.zonal_statistics(dem, states, out_dem_stats, statistics_type='MEAN', scale=1000)"
"geemap.zonal_stats(dem, states, out_dem_stats, stat_type='MEAN', scale=1000)"
]
},
{
Expand All @@ -101,8 +101,8 @@
"outputs": [],
"source": [
"out_landsat_stats = os.path.join(out_dir, 'landsat_stats.csv')\n",
"geemap.zonal_statistics(\n",
" landsat, states, out_landsat_stats, statistics_type='SUM', scale=1000\n",
"geemap.zonal_stats(\n",
" landsat, states, out_landsat_stats, stat_type='SUM', scale=1000\n",
")"
]
},
Expand Down Expand Up @@ -134,4 +134,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
4 changes: 0 additions & 4 deletions docs/notebooks/131_arcgis.ipynb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -20,7 +19,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -59,7 +57,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -84,7 +81,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down
Loading

0 comments on commit efaf466

Please sign in to comment.