setup.locs.grid: Setup the discrete spatial grid for the HMM

Description Usage Arguments Value References Examples

View source: R/setup.locs.grid.R

Description

setup.locs.grid sets up a discrete spatial grid for the HMM

If input limits is a data.frame, longitude limits become +/- 5 degrees and latitude becomes +/- 10 degrees. You may also input your own list of limits.

Usage

1
setup.locs.grid(limits, res = "quarter")

Arguments

limits

can take either a 'data.frame' of -Locations from WC psat tag or a pre-determined list of limits as list(xmin, xmax, ymin, ymax)

res

character indicating resolution of grid. 'hycom' is .08 to match hycom reanalysis res. 'quarter' and 'one' are .25 and 1 deg, respectively.

Value

a list of spatial bounds

References

Pedersen MW, Patterson TA, Thygesen UH, Madsen H (2011) Estimating animal behavior and residency from movement data. Oikos 120:1281-1290. doi: 10.1111/j.1600-0706.2011.19044.x

Examples

1
2
3
# SET SPATIAL LIMITS
sp.lim <- list(lonmin = -95, lonmax = -52, latmin = 10, latmax = 55)
locs.grid <- setup.locs.grid(sp.lim)

HMMoce documentation built on Nov. 17, 2017, 5:57 a.m.