FLightR (version 0.4.5)

make.grid: makes spatial grid

Description

This function makes a rectangular grid with use defined boudnaries 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
bottom
- lower boundary in degrees (-90
right
- right boundary in degrees (-180
top
- top boundary in degrees (-90
distance.from.land.allowed.to.use
- define how far from the shoreland animal could occur. Unit - km, egative values are for inland and positive for offshore directions. Inf stays for infinity
distance.from.land.allowed.to.stay
- define how far from the shoreland animal could stay stationary between twilights. Unit - km, egative 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

Examples

Run this code
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))

Run the code above in your browser using DataLab