make.grid {FLightR}R Documentation

makes spatial grid

Description

This function makes a rectangular grid with use defined boundaries and probabilities of being stationary.

Usage

make.grid(
  left = -180,
  bottom = -90,
  right = 180,
  top = 90,
  distance.from.land.allowed.to.use = c(-Inf, Inf),
  distance.from.land.allowed.to.stay = c(-Inf, Inf),
  plot = TRUE,
  return.distances = FALSE,
  probability.of.staying = 0.5
)

Arguments

left

- left boundary in degrees (-180 <= left <= 180)

bottom

- lower boundary in degrees (-90 <= bottom <= 90)

right

- right boundary in degrees (-180 <= right <= 180)

top

- top boundary in degrees (-90 <= right <= 90)

distance.from.land.allowed.to.use

- define how far from the shore animal could occur. Unit - km, negative values are for inland and positive for offshore directions. Inf stays for infinity

distance.from.land.allowed.to.stay

- define how far from the shore animal could stay stationary between twilights. Unit - km, negative values are for inland and positive for offshore directions. Inf stays for infinity

plot

show a plot of final grid.

return.distances

- return distances to the shoreline

probability.of.staying

- assigned probability value for grid cells that do not satisfy distance.from.water.allowed.to.stay

Value

dataframe with coordinates(lon and lat) and probability.of.staying

Author(s)

Eldar Rakhimberdiev

Examples

Grid<-make.grid(left=-14, bottom=30, right=13, top=57,
  distance.from.land.allowed.to.use=c(-Inf, Inf),
  distance.from.land.allowed.to.stay=c(-Inf, Inf))


[Package FLightR version 0.5.5 Index]