returns a buffered land mask to constrain potential model results

stk_mask(buffer = 0, resolution = 1, bbox, sf = FALSE)

Arguments

buffer

buffer in degrees

resolution

resolution of the spatial grid in degrees, when exporting as a terra SpatRaster (default = 1)

bbox

bounding box of the mask, sets hard boundaries on the search area of valid locations as well

sf

return the land mask as an 'sf' polygon, not a rasterized map. Mostly used in map plotting, not used for processing (default = FALSE)

Value

buffered land mask as an 'sf' or 'terra' map object