Skip to content

Commit e2f417b

Browse files
author
Mike Hearne
authored
Merge pull request #147 from mhearne-usgs/vanuatu_fix
removed test block that only seemed to cause problems. Weird.
2 parents 82f54b9 + 45dc59d commit e2f417b

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

mapio/reader.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -235,20 +235,20 @@ def _read_data(src, samplegeodict, resample, method):
235235

236236
# it is possible sometimes to have this code return (usually) one more
237237
# or maybe one less pixel's worth of data. This adjustment tries to fix that.
238-
if not pad:
239-
dwidth = (left_window.width + right_window.width) - samplegeodict.nx
240-
new_width = right_window.width
241-
if dwidth > 0:
242-
new_width -= dwidth
243-
if dwidth < 0:
244-
new_width += dwidth * -1
245-
246-
right_window = rasterio.windows.Window(
247-
right_window.col_off,
248-
right_window.row_off,
249-
new_width,
250-
right_window.height,
251-
)
238+
# if not resample:
239+
# dwidth = (left_window.width + right_window.width) - samplegeodict.nx
240+
# new_width = right_window.width
241+
# if dwidth > 0:
242+
# new_width -= dwidth
243+
# if dwidth < 0:
244+
# new_width += dwidth * -1
245+
246+
# right_window = rasterio.windows.Window(
247+
# right_window.col_off,
248+
# right_window.row_off,
249+
# new_width,
250+
# right_window.height,
251+
# )
252252

253253
# Leaving this in place b/c this caused an issue but I can't remember
254254
# what problem this block of code solved in the first place.

0 commit comments

Comments
 (0)