surfaceConvert: Convert raster to matrix

Description Usage Arguments Value Note Author(s) Examples

Description

Conversion of a raster to the matrix format used by other simulation functions.

Usage

1
surfaceConvert(rSurface)

Arguments

rSurface

The input raster with resolution and spatial extent associated with the base raster returned by surfaceBase.

Value

A list with the raster data as a matrix and spatial extent object.

Note

Edited by CDMartinez 28 June 16

Author(s)

Created by CDMartinez 28 June 16

Examples

1
2
3
4
5
library(raster)
rLogo = raster(system.file("external/rlogo.grd", package="raster"))
plot(rLogo)
mLogo = surfaceConvert(rLogo)
image(mLogo)

madorning/energySim0.1.0 documentation built on May 22, 2019, 2:23 p.m.