qm_as_raster: Quadmesh to raster

View source: R/raster.R

qm_as_rasterR Documentation

Quadmesh to raster

Description

Approximate re-creation of a raster from a quadmesh.

Usage

qm_as_raster(x, index = NULL)

Arguments

x

'mesh3d' object

index

optional index to specify which z coordinate to use as raster values

Details

The raster is populated with the mean of the values at each corner, which is closest to the interpretation use to create mesh3d from rasters. This can be over ridden by setting 'index' to 1, 2, 3, or 4.

Value

RasterLayer

Examples

qm_as_raster(quadmesh(etopo))

hypertidy/quadmesh documentation built on Sept. 6, 2022, 12:14 a.m.