Skip to content

Commit

Permalink
ensure pixel_resolution to be an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelacruzb committed Dec 20, 2023
1 parent b19850e commit 8d7841b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raster_loader/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ def rasterio_metadata(
metadata["block_height"] = block_height
metadata["num_blocks"] = int(width * height / block_width / block_height)
metadata["num_pixels"] = width * height
metadata["pixel_resolution"] = resolution + math.log(
block_width * block_height, 4
metadata["pixel_resolution"] = int(
resolution + math.log(block_width * block_height, 4)
)

return metadata
Expand Down

0 comments on commit 8d7841b

Please sign in to comment.