powered by
Raster conversion functions
sdm_as_asc(x, xll = 1, yll = 1, cellsize = 1)
is an object of class 'matrix'
is the lat center (not corner!) of lower-left grid
is the lon center (not corner!) of lower-left grid
is the resolution of the raster in decimal degrees
Returns an object of class 'asc'.
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'.
sdm_as_asc
as.asc
# 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) # }
Run the code above in your browser using DataLab