gen_grid: Generate a spatial grid

Description Usage Arguments See Also Examples

View source: R/gen_grid.R

Description

Produces an arbitrary grid in any user-defined coordinate system. Used by gfcanalysis for producing the 10x10 degree WGS84 grid that the GFC product is tiled on, so that an AOI polygon can be intersected with the grid to calculate the appropriate tiles to download.

Usage

1
gen_grid(origin_x, dx, max_x, origin_y, dy, max_y, grid_proj4string = NULL)

Arguments

origin_x

x coordinate of the origin

dx

cell size in the x direction

max_x

maximum value in x direction

origin_y

y coordinate of the origin

dy

cell size in the y direction

max_y

maximum value in y direction

grid_proj4string

coordinate system as a crs object (defaults to WGS-84)

See Also

download_tiles

Examples

1
gfc_tiles <- gen_grid(-180, 10, 180, -60, 10, 80)

azvoleff/gfcanalysis documentation built on June 4, 2017, 12:07 a.m.