Skip to content

Commit

Permalink
fix rasterio dev dtype (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathause committed Mar 22, 2024
1 parent 4027f4a commit a799971
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions regionmask/core/mask.py
Expand Up @@ -918,6 +918,9 @@ def _mask_rasterize_no_offset(
transform = _transform_from_latlon(lon, lat)
out_shape = (len(lat), len(lon))

# can remove once https://github.com/rasterio/rasterio/issues/3043 is fixed
dtype = dtype if dtype is None else np.dtype(dtype).name

raster = features.rasterize(
shapes,
out_shape=out_shape,
Expand Down

0 comments on commit a799971

Please sign in to comment.