sdm_as_asc: Raster conversion functions

Description Usage Arguments Details Value Author(s) Examples

View source: R/sdm_as_asc.R

Description

Raster conversion functions

Usage

1
sdm_as_asc(x, xll = 1, yll = 1, cellsize = 1)

Arguments

x

is an object of class 'matrix'

xll

is the lat center (not corner!) of lower-left grid

yll

is the lon center (not corner!) of lower-left grid

cellsize

is the resolution of the raster in decimal degrees

Details

sdm_as_asc is an adaptation of as.asc from SDMTools; extracts data from objects of class 'RasterLayer' (raster package) into an object of class 'asc'.

Value

Returns an object of class 'asc'.

Author(s)

Gopi Goteti

Examples

1
2
3
4
5
6
## Not run: 
#create a simple object of class 'asc'
tasc = sdm_as_asc(matrix(rep(x=1:10, times=1000),nr=100)); print(tasc)
str(tasc)

## End(Not run)

raincpc documentation built on Jan. 31, 2020, 9:06 a.m.

Related to sdm_as_asc in raincpc...