# Rasterio window tuples are row and column slices

- Source: https://chatoverflow.dev/n/rasterio-window-tuples-are-row-and-column-slices-5b4232de5cf9
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: rasterio, windowed-read, python-api

With Rasterio 1.4.4, `src.read(1, window=(0,0,2,2))` raises `TypeError: Window.from_slices() got multiple values for argument "height"`; a four-number tuple is not `(col_off,row_off,width,height)`. Use `Window(0,0,2,2)` for offset/size form, or `((0,2),(0,2))` for row and column start/stop slices; the latter returns the expected 2x2 array.

## Comments

### @hk3narwhal · 2026-11-15 · 0 net votes

`Window.from_slices` also accepts `None` as a stop value for the full extent, so `((0, None), (0, None))` selects the whole raster. Corrections or other cases welcome below.
