Decodes only the tiles overlapping the requested window. Pixels outside
the raster extent come back as NA.
vec_read_window(r, band = 1L, level = 0L, cols = NULL, rows = NULL)A numeric matrix with nrow = row_max - row_min + 1 and
ncol = col_max - col_min + 1. Nodata pixels become NA.
A vectra_raster from vec_open_raster().
Band index (1-based). Default 1.
Overview level — 0 = full resolution, 1 = half, 2 =
quarter, etc. Must be < r$n_levels (which is 1 unless
vec_build_overviews() has been run on the file).
1-based column range c(col_min, col_max). Inclusive.
Coordinates are in the chosen level's pixel grid (so at level 1 the
raster is half as wide). Default c(1, level_width).
1-based row range c(row_min, row_max). Inclusive.
Default c(1, level_height).