raster_to_rasterio: RasterIO window from raster object

Description Usage Arguments Details Value Examples

View source: R/grids.R

Description

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

Usage

1
2
3

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

1
raster_to_rasterio(raster::raster(volcano))

mdsumner/affinething documentation built on June 18, 2021, 12:22 a.m.