Skip to content

Commit

Permalink
fix for DataArray
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis committed Dec 13, 2023
1 parent cd00342 commit cc51123
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xvec/zonal.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def _zonal_stats_rasterize(
vec_cube = (
agg.reindex(group=range(len(polygons)))
.assign_coords(group=polygons)
.rename_dims(group=name)
.rename_vars(group=name)
.rename(group=name)
).xvec.set_geom_indexes(name, crs=crs)

del groups
Expand Down

0 comments on commit cc51123

Please sign in to comment.