GridCreation: Grid creation

Description Usage Arguments Value

View source: R/BasicFunctions.R

Description

Creating a grid spanning the complete mesh with a specified pixel size and a projection from the mesh to the grid

Usage

1
2
3
4
5
6
7
GridCreation(
  mesh,
  countingDomain,
  areaCountDomain,
  grid.pixelsize = 0.2,
  gridSpan = "mesh"
)

Arguments

mesh

Mesh object, being the output from inla.mesh.2d

countingDomain

data.frame containing x- and y-coordinates of the counting domain polygon

areaCountDomain

Numeric giving the area of the counting domain (in km)

grid.pixelsize

Numeric, denoting the size (in km, in both x- and y-direction) of each pixel of the grid being used

gridSpan

String equal to either "mesh" or "countingDomain" specifying what area the grid should span.

Value

List with the X and Y-values for the grid, the mesh-to-grid projection object (output form inla.mesh.projector), and other related variables


PointProcess/SealPupProduction-JRSSC-code documentation built on Jan. 27, 2020, 10:06 p.m.