raster_to_world: World vector from raster object.

Description Usage Arguments Details Value Examples

View source: R/grids.R

Description

Return the world transform defining the raster's offset and resolution.

Usage

1

Arguments

x

raster object (the raster package, extends BasicRaster)

Details

The world vector is the values xres, yres, xmin, ymax relative to the centre of the top left pixel. "yres" the y-spacing is traditionally negative.

Value

a geotransform vector

Examples

1
raster_to_world(raster::raster(volcano))

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