Skip to content

Commit

Permalink
need to sum area, not average
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeifer committed Jul 24, 2024
1 parent 44810c5 commit dd2fb62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snodas/snodas/zonal_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _calc(
product=product,
elevation_band=band,
mean=float(numpy.average(values_array[selection])),
area=float(numpy.average(aoi.area[selection])),
area=float(numpy.sum(aoi.area[selection])),
),
)

Expand Down

0 comments on commit dd2fb62

Please sign in to comment.