createStrataDF.fn: create a strata file for EWC functions

Description Usage Arguments Details Author(s) See Also

Description

Creates the strata data frame used by EWC functions. Contains depths, latitudes, and area of each strata.

Usage

1
 createStrataDF.fn(depths,lats,SA3)

Arguments

depths

A vector of depth limits

lats

A vector of latitude limits

SA3

A dataframe of areas for specific depth and latitude boxes. This file is available from from the NWFSC Population Ecology team.

Details

Creates the dataframe called strat.df that is used by other functions.

strat.df is a dataframe with a column called “name” and two columns for each stratum variable (START_LATITUDE and BOTTOM_DEPTH) indicating the low and high bounds. The columns for each stratum variable should be named with the stratum variable name followed by .1 for the low bound and .2 for the high bound. For example, this is what a strat.df would look like (as called in the example below).

name area START_LATITUDE.2 START_LATITUDE.1 BOTTOM_DEPTH.1 BOTTOM_DEPTH.2 A 5829 49.0 45.0 183 549 B 4024 49.0 45.0 549 900 C 9259 49.0 40.5 900 1280 D 6211 45.0 40.5 183 549 E 5264 45.0 40.5 549 900 F 6952 40.5 34.5 183 549 G 7801 40.5 34.5 549 900 H 8059 40.5 34.5 900 1280

It uses StratAreas.fn to calculate the area of the strata using the SA3 data. You will need to supply boundaries available in the SA3 file.

Author(s)

Allan Hicks

See Also

StratAreas.fn, ReadInBiomass.EWC.fn, SA3,


nwfscSurveyCode documentation built on May 2, 2019, 5:27 p.m.