resample_strat: Downsample strata for masking

Description Usage Arguments Value Examples

View source: R/resample_strat.R

Description

This function converts NEFSC Bottom Trawl depth stata in "BTS_strata" shapefiles to a downsampled raster format, which is necessary for masking target rasters containing ecosystem data. Primarily an interal function used by stock_env()

Usage

1
resample_strat(svspp, season, mask_type)

Arguments

svspp

Species code as specified in data/species_list.csv

season

Season in which trawl survey occurred.

mask_type

Specifies raster masking behavior. Can be one of "nes", "gom", "gbk", "sne", or "unit". If mask is "unit", then returned time series reflect stock boundaries drawn from depth strata.

Value

Returns a downsampled raster depicting area of interest.

Examples

1
resample_strat(svspp = 103, mask_type = "unit", season = "spring")

NOAA-EDAB/ECSA documentation built on Oct. 24, 2020, 2:21 p.m.