Learn R Programming

osmose (version 0.1.1)

getFishingBaseRate: Get fishing base rate.

Description

Get fishing base rate.

Usage

getFishingBaseRate(sp, fishing, T, ndt)

Arguments

sp

Current specie (sp0, sp1, etc.)

fishing

Fishing parameters

T

Number of years

ndt

Time step

Details

It assumes that in the Osmose configuration, there is a "fishing" entry. It first check for the "method" parameter for the current specie (mortality.fishing.rate.method.spX), whose value can be

  • constant: use rate.spX

  • byRegime: use rate.byRegime.file.spX

  • linear : use rate.slope.spX

  • byYear : use rate.byYear.spX

  • byDt : use rate.byDt.spX

Examples

Run this code
# NOT RUN {
{
filename = system.file("extdata", "data_fishing.csv", package="osmose")
conf = readOsmoseConfiguration(filename)
ndt = getOsmoseParameter(conf, "simulation", "time", "ndtperyear")
nyear = getOsmoseParameter(conf, "simulation", "time", "nyear")

fishing = conf$mortality$fishing

fish0 = getFishingBaseRate("sp0", fishing, nyear, ndt)
}
# }

Run the code above in your browser using DataLab