Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into gr-rainfall-intensity
Browse files Browse the repository at this point in the history
  • Loading branch information
Apolline Elbaz committed Sep 16, 2024
2 parents 17373cc + 7f5c242 commit 697d150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smash/core/model/_read_input_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def _read_windowed_raster(path: FilePath, mesh: MeshDT) -> tuple[np.ndarray, dic
ys = pyoff - yoff
xe = xs + pwin_xsize
ye = ys + pwin_ysize
arr_xslice = slice(int(xs * 1 / xres_ratio), int(xe * 1 / xres_ratio))
arr_yslice = slice(int(ys * 1 / yres_ratio), int(ye * 1 / yres_ratio))
arr_xslice = slice(int(np.rint(xs * 1 / xres_ratio)), int(np.rint(xe * 1 / xres_ratio)))
arr_yslice = slice(int(np.rint(ys * 1 / yres_ratio)), int(np.rint(ye * 1 / yres_ratio)))

# % Reading and writting into buffer
ds.read(
Expand Down

0 comments on commit 697d150

Please sign in to comment.