bin_calculate.Rd
Bins CTD data for an individual cast to avoid depth averaging across tow-yo's
bin_calculate(data, binSize = 1, imageVolume, rev = FALSE)
ctd data frame object
the height of bins over which to average, default is 1 metre
the volume of VPR images used for calculating concentrations (mm^3)
logical value, if TRUE, binning will begin at bottom of each cast, this controls data loss due to uneven binning over depth. If bins begin at bottom, small amounts of data may be lost at the surface of each cast, if binning begins at surface (rev = FALSE), small amounts of data may be lost at bottom of each cast
Image volume calculations can change based on optical setting of VPR as well as autodeck setting used to process images.
For IML2018051 (S2) image volume was calculated as 108155 mm^3 by seascan (6.6 cubic inches).
For COR2019002 S2 image volume was calculated as 83663 mm^3 and S3 image volume was calculated as 366082 mm^3.
Used internally (bin_cast
) after ctd_cast
on a single ascending or descending section of VPR cast.
binSize should be carefully considered for best results.
Depth is used for calculations! Please ensure depth is included in data frame using swDepth.