raster_to_rasterio {affinity}R Documentation

RasterIO window from raster object

Description

Return the RasterIO window vector defining the raster's offset and resolution and dimensions.

Usage

raster_to_rasterio(x)

raster_to_sfio(x)

Arguments

x

a raster object (BasicRaster, from raster package)

Details

The RasterIO window is a six element vector of offset (x,y), dimension of source (nx0, ny0) and dimension of output (nx, ny).

The sf RasterIO is the RasterIO window in a list format used by the sf package, it contains the same information, and is created by raster_to_sfio().

Value

RasterIO window vector 'c(x0, y0, nx0, ny0, nx, y)' see Details

Examples

raster_to_rasterio(raster::raster(volcano))

[Package affinity version 0.2.5 Index]