make.grid: makes spatial grid

Description Usage Arguments Value Author(s) Examples

View source: R/spatial.mask.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

1
2
3
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))

FLightR documentation built on July 6, 2021, 5:08 p.m.