Skip to content

Commit

Permalink
small osm fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dalmijn committed Aug 11, 2023
1 parent dc01c39 commit c15ee9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hydromt/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2402,8 +2402,7 @@ def tile_window(zl, minx, miny, maxx, maxy):

temp = obj[u : u + h, l : l + w]

tile = np.empty((px_size, px_size), np.float64)
tile[:] = nodata
tile = np.full((px_size, px_size), nodata, dtype=np.float64)

temp_transform = Affine(
obj_res,
Expand Down Expand Up @@ -2438,7 +2437,7 @@ def tile_window(zl, minx, miny, maxx, maxy):
transform[0],
)[:px_size],
},
data=tile,
data=tile.copy(),
)

del tile
Expand Down

0 comments on commit c15ee9b

Please sign in to comment.