convert_strata4vast: Convert Area-Based Strata to VAST Strata

View source: R/convert_strata4vast.R

convert_strata4vastR Documentation

Convert Area-Based Strata to VAST Strata

Description

Convert strata defined using GetStrata.fn() to strata that will work with VAST. Results will be more consistent using these defined strata rather than All_Areas, which predicts to the entire extrapolation grid.

Usage

convert_strata4vast(
  strata,
  overridedepth = FALSE,
  mindepth = 55,
  maxdepth = 1280
)

Arguments

strata

A data frame generated using GetStrata.fn().

overridedepth

A logical value specifying if mindepth and maxdepth should be used instead of the depths that are available within strata. These depths will always replace NA values, but if TRUE all depths will be replaced with the argument values. The default is to not replace them, i.e., overridedepth = FALSE.

mindepth

The depth in meters that you want to use as a boundary for the shallow edge of all strata. The default value is 55 m. All NA values will be replaced with mindepth.

maxdepth

The maximum depth that you want to use as a boundary for the deep edge of all strata. The default value is 1280 m. All NA values will be replaced with maxdepth.

Value

A data frame with one row per strata. Strata can overlap and need not be unique.

  • STRATA (the name of the strata, only used for plotting later),

  • north_border (northern latitude of the strata),

  • south_border (southern latitude of the strata),

  • shallow_border (shallow depth (m) of the strata), and

  • deep_border (deep depth (m) of the strata).

Author(s)

Kelli F. Johnson

Examples

convert_strata4vast(nwfscSurvey::GetStrata.fn("sablefish"))


nwfsc-assess/VAST_WestCoast documentation built on July 4, 2023, 5:45 p.m.