Skip to content

Commit ba7ef28

Browse files
authored
use float32 as mask in rasterize (#77)
1 parent 49a6f70 commit ba7ef28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xvec/zonal.py

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def _zonal_stats_rasterize(
6060
transform=transform,
6161
fill=np.nan, # type: ignore
6262
all_touched=all_touched,
63+
dtype=np.float32,
6364
)
6465
groups = acc._obj.groupby(xr.DataArray(labels, dims=(y_coords, x_coords)))
6566

0 commit comments

Comments
 (0)