Learn R Programming

raincpc (version 1.1.0)

sdm_getXYcoords: Computes the X and Y Coordinates of the Pixels of a Raster Map

Description

Computes the X and Y Coordinates of the Pixels of a Raster Map

Usage

sdm_getXYcoords(w)

Arguments

w

an object of class asc.

Value

Returns a list with two components:

x

the x coordinates of the columns of pixels of the map

y

the y coordinates of the rows of pixels of the map

Details

sdm_getXYcoords is an adaptation of getXYcoords from SDMTools; computes the geographical coordinates of the rows and columns of pixels of a raster map of class asc.

Examples

Run this code
# NOT RUN {
tasc = sdm_as_asc(matrix(rep(x=1:10, times=1000),nr=100)); print(tasc)
sdm_getXYcoords(tasc)
# }

Run the code above in your browser using DataLab