Learn R Programming

HMMoce (version 1.0.0)

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

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

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

Run this code
# NOT RUN {
# SET SPATIAL LIMITS
sp.lim <- list(lonmin = -95, lonmax = -52, latmin = 10, latmax = 55)
locs.grid <- setup.locs.grid(sp.lim)

# }

Run the code above in your browser using DataLab