Basic function to create the window paramers as used by GDAL RasterIO.
raster_io0( src_offset, src_dim, out_dim = src_dim, resample = "NearestNeighbour" )
src_offset | index offset (0-based, top left) |
---|---|
src_dim | source dimension (XY) |
out_dim | output dimension (XY, optional src_dim will be used if not set) |
resample | resampling algorith for GDAL see details |
numeric vector of values specifying offset, source dimension, output dimension
Resampling algorithm is one of 'NearestNeighbour' (default), 'Average', 'Bilinear', 'Cubic', 'CubicSpline', 'Gauss', 'Lanczos', 'Mode', but more may be available given the version of GDAL in use.
#> offset_x offset_y source_nx source_ny out_nx out_ny #> 0 0 24 10 24 10 #> attr(,"resample") #> [1] "NearestNeighbour"