Skip to content

Commit

Permalink
Merge pull request #239 from PyPSA/fix-rasterio-resample-method
Browse files Browse the repository at this point in the history
fix: use explicit rasterio resample method for averaging
  • Loading branch information
FabianHofmann authored May 27, 2022
2 parents 2ab6c9e + 40d0634 commit de20027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atlite/gis.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def shape_availability_reprojected(
return rio.warp.reproject(
masked,
empty(dst_shape),
resampling=5,
resampling=rio.warp.Resampling.average,
src_transform=transform,
dst_transform=dst_transform,
src_crs=excluder.crs,
Expand Down

0 comments on commit de20027

Please sign in to comment.