get_optimal_res: Get optimal land mask raster resolution

Description Usage Arguments Value

View source: R/get_optimal_res.R

Description

the crawl package includes a function fix_path that will adjust a movement path to move around a restricted area (e.g. land if the animal is a fish or marine mammal). The resolution of this land mask is an important parameter and, often, is related to the spatial scale of the movement. Higher resolution has a significant cost in compute time and memory requirements. So, this function uses a simple rule to determine an optimal resolution for this land mask. The highest resolution is 200 m per side for any region with a max dimension less than or equal to 25 km. Above a max dimension of 25 km, the resolution is determined by dividing the max dimension by 1000 and multiplying by 8. That said, once the max dimension reaches 150km, the resolution is set to a fixed value of 1.2km.

Usage

1

Arguments

pts

a SpatialPoints, or SpatialPointsDataFrame

Value

numeric value indicating the square cell dimension in meters


jmlondon/crawlr documentation built on May 19, 2019, 1:53 p.m.