getTotalBiomass: Extract dayly subsets of biomass and superind.

Description Usage Arguments

View source: R/pelfoss.R

Description

getSuperindOfDay Gets the superind data of one day.

getBiomassOfSurvey Gets the average biomass data of all days of a survey.

getTotalBiomass Gets the total biomass/'fish length which would produce an unbiased biomass via acoustic backscattering'. Uses the superind data.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
getSuperindOfDay(
  superind,
  superindDay = NULL,
  superindFilter = NULL,
  stratumPolygons = NULL,
  transectsXyOfDay = NULL,
  insideRange = NULL
)

getDataOfDay(
  x,
  day = NULL,
  filter = NULL,
  stratumPolygons = NULL,
  transectsXyOfDay = NULL,
  insideRange = NULL
)

getBiomassOfSurvey(x, daysOfSurvey = NULL, fresh = FALSE)

getTotalBiomass(
  superind,
  stratumPolygons,
  strataInd = NULL,
  days = NULL,
  type = c("biomass", "length"),
  superindFilter = NULL,
  union = FALSE,
  transectsXyOfDay = NULL,
  insideRange = NULL
)

Arguments

superindFilter

A function such as superindFilter <- function(x)x$Long < 20 & x$Lat < 70, taking the superind data as input and returning a logical vector discarding certain longitude/latitude combinations.

stratumPolygons

A named list of stratum polygons as data frames with longitude in the first column and latitude in the second.

day

The day on which to extract the superind data.

daysOfSurvey

A vector of the days of the survey over which to average the biomass.

strataInd

A vector of indices of the strata to compute the total biomass over.

days

A vector of indices of the days to compute the total biomass for.

type

A string specifying the type of calculation (first element used), one of "biomass" and "length", returning total biomass and the length that would result in unbiased estimated total biomass if bioass was converted to NASC and aggregated throughout the survey region.

biomass, superind

The biomass and superind data read from readNcVarsAndAttrs (used in readNorwecomBiomass and readNorwecomSuperind).

NAsByFirst

Logical: If TRUE, identify NAs by the first day of the superind data.

midDayOfSurvey

The mid day of the survey ar which to extract the superind data.


Sea2Data/pelfoss documentation built on Dec. 7, 2020, 12:31 a.m.