gen_gsg: Generating global sampling grids with constant distance...

Description Usage Arguments Details Value Author(s) Examples

View source: R/sample_design.R

Description

Generating global sampling grids with constant distance between sample locations on the surface of a sphere

Usage

1
gen_gsg(dis, bnd = NULL)

Arguments

dis

Distance in kilometers between sample locations

bnd

Polygon outline of an area of interest for which the sampling grid is generated (a SpatialPolygonsDataFrame object). If NULL, a global grid is generated.

Details

The grid consists of equidistant points along circles of latitude on a spheroid (WGS84/Pseudo-Mercator, epsg:43328).

Value

An object of SpatialPointsDataFrame holding the sampling locations of the grid.

Author(s)

Lutz Fehrmann

Examples

1
2
3
4
5
# Boundary of Germany
ger_bnd <- load_boundary(x = NA, country_code = "DEU", adm_level = 0);

gsg_ger <- gen_gsg(50, ger_bnd);
plot(gsg_ger)

AWF-GAUG/gsgsim documentation built on May 29, 2019, 4:37 p.m.