grid2spix: grid2spix function

Description

A function to convert a regular (x,y) grid of centroids into a SpatialPixels object

Usage

1
grid2spix(xgrid, ygrid, proj4string = CRS(as.character(NA)))

Arguments

xgrid

vector of x centroids (equally spaced)

ygrid

vector of x centroids (equally spaced)

proj4string

an optional proj4string, projection string for the grid, set using the function CRS

Value

a SpatialPixels object


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.