Skip to content

Commit

Permalink
use float32 as mask in rasterize (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis authored Aug 23, 2024
1 parent 49a6f70 commit ba7ef28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xvec/zonal.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def _zonal_stats_rasterize(
transform=transform,
fill=np.nan, # type: ignore
all_touched=all_touched,
dtype=np.float32,
)
groups = acc._obj.groupby(xr.DataArray(labels, dims=(y_coords, x_coords)))

Expand Down

0 comments on commit ba7ef28

Please sign in to comment.