StationLengthDist: Station length distribution

Description Usage Arguments Details Value See Also Examples

View source: R/Biotic.R

Description

The StationLengthDistribution function produces length frequency distributions for each biotic station by SpeciesCategory, either as percentage or as count, optionally normalized by towing distance

Usage

1

Arguments

parameterName

Parameter descrption.

Details

The StationLengthDistribution function produces length frequency distributions for each biotic station or Haul by SpeciesCategory. A SpeciesCategory is usually a taxonomic species, but the categorization may follow other criteria.The catch of one SpeciesCategory is often split into one or more CatchFractions. If the catch of a species consists of several distinct size ranges, it is common to perform such splitting. For each CatchFraction, a CatchFractionWeight has been calculated and raised to Haul level. The sum of all CatchFractionWeights for a SpeciesCategory is therefore equal to the total catch weight of the trawl Haul. A CatchFractionCount is calculated in the same manner.

From each CatchFraction, a Sample is usually taken. Various types of individual characteristics or population parameters are measures. The most common parameters are individual length followed by weight. Other parameters are age, sex, maturity etc. The Sample weight and number is recorded. From the CatchFractionWeight and the SampleWeight, a raising factor (r) is calculated as:

r = \frac{CatchFractionWeight}{SampleWeight}

alternatively, the raising factor r can be calculated as:

r = \frac{CatchFractionCount}{SampleCount}

A RaisingOrder parameter determines whether to make the first attempt on calculating the raising factor by weight or count variables. If the initial attempt fails due to lack of data, a new attempt is done using the alternative variables.

To produce a length frequency distribution for the Haul by SpeciesCategory, each Sample length distribution is first multiplied with the raising factor of the Sample. A total length distribution for the entire catch, is produced by adding the adjusted length distributions from all the Samples into one common length distribution for the SpeciesCategory in a Haul.

The Samples may have different length group intervals. If this is the case and the intervals overlap between Samples, the least common multiple is used as the length interval for the combined total length distribution.The combination of length frequencies from all Samples of a SpeciesCategory can be expressed as:

d_s = \displaystyle∑_{i=1}^{n} r_{s,i} \times d_{s,i}

where

d_s is the resultant length distribution for the station or Haul s,

d_{s,i} is the length distribution of Sample no i at Haul s,

r_{s,i} is a raising factor for Sample no i at Haul s,

n is the number of Samples

The StationLengthDistribution function can generate three different distributions types:

1) LengthDistribution

A calculated length distribution as if every individual of the SpeciesCategory in the Haul had been length measured. This is mainly done as described above. A raising factor for each Sample will be attempted calculated using either CatchFractionWeight and SampleWeight or CatchFractionCount and SampleCount. If both attempts to calculate a raising factor for one or more Samples fail, no LengthDistribution can be created for the SpeciesCategory in this Haul.

2) NormLengthDist

Normalized length distribution to one nautical mile towing distance. This distribution shows the length distribution as if the towing distance had been one nautical mile long and the entire catch had been length measured. The length distributions LengthDist is used together with the towing distance of the trawl station, to calculate this distribution. The number of fish from LengthDist in each length group is divided by the towing distance. It is worth noting that length distributions of type NormLengthDist from several stations may be compared since they are independent of effort (towing distance). Each of the length distributions reflects the CPUE of the trawl hauls. They are in other words implicitly weighted by CPUE. If towing distance is lacking for a station, length distributions of type NormLengthDist cannot be made.

3) PercentLengthDist

Length distribution in percent. Length distributions of this type reflects the shape of the length distribution and contains therefore no implicit weighting.The calculation of percent length distributions is done as follows:

A) If a SpeciesCategory at a station only have one Sample, the percent distribution is generated directly from the Sample length distribution. There is no need for knowing the raising factor.

B) If a SpeciesCategory in a Hauls have more than one Sample, the percent distributions are generated by converting the LengthDistribution into percent distribution. This implies that distributions with more than one Sample and with missing raising factors will not be generated as no LengthDistribution exist for these.

General comments on the function

The length group interval used in length distributions may vary within a Haul length distribution for one SpeciesCategory, between SpeciesCategories in the same Haul and between Hauls. However, different length intervals within one distribution cannot overlap. If they do, a least common multiple is calculated and used for the output length distribution. Also note that some StoX models require one specific LengthDistributionType as output from the process and as input to other processes in the model.

Value

A data.table is returned with awesome stuff.

See Also

roxygenize is used to generate the documentation.

Examples

1
x <- 1

StoXProject/RstoxTempDoc documentation built on Dec. 31, 2019, 1:50 p.m.