Description Usage Arguments Value Author(s) Examples
View source: R/generate-grid-centers.R
Given a rectangular extent and a resolution in both the x- and y-directions, this function computes the coordinates of the centers of the grid cells.
1 2 | generate.grid.centers(x.lower, x.upper, y.lower, y.upper, resolution.x,
resolution.y, params, separate = FALSE)
|
x.lower, x.upper, y.lower, y.upper |
Specifies the boundaries of the rectangular region that the GRF is defined on. |
resolution.x, resolution.y |
The number of grid cells used for the regular grid, in the x- and y-direction, respectively. |
params |
The parameters above can instead be specified in the list |
separate |
If true, the function returns the x- and y-coordinates of the centers in separate vectors. |
A (resolution.x*resolution.y) x 2
matrix specifying the centers of the grid cells. If separate = FALSE
, a list of two vectors of length resolution.x and resolution.y.
Mathias Isaksen mathiasleanderi@gmail.com
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.