CreateCountDomainPolygon: Create counting domain polygon

Description Usage Arguments Value

View source: R/BasicFunctions.R

Description

Creates a polygon corresponding to the area where seals might live and we are going to count

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
CreateCountDomainPolygon(
  transectStartCoordX,
  transectStartCoordY,
  transectEndCoordX,
  transectEndCoordY,
  coordPhotoX,
  coordPhotoY,
  photoWidth,
  photoHeight,
  transectYSpan = 1.5 * 1.852,
  transectXSpan = 0,
  theseTransInCountDomain = length(transectStartCoordX),
  cornerpointPolyInitializer = T
)

Arguments

transectStartCoordX

Numeric vector with X-coordinate for which each transect is starting, in km

transectStartCoordY

Numeric vector with Y-coordinate for which each transect is starting, in km

transectEndCoordX

Numeric vector with X-coordinate for which each transect is ending, in km

transectEndCoordY

Numeric vector with X-coordinate for which each transect is ending, in km

coordPhotoX

Numeric vector with X-coordinate for the center point of each photo, in kilometers

coordPhotoY

Numeric vector with Y-coordinate for the center point of each photo, in kilometers

photoWidth

Numeric vector with the width of each photo, in km

photoHeight

Numeric vector with the height of each photo, in km

transectYSpan

Numeric, specifying how far transects are spanning in Y-direction, given in kilometers (for this data set this is 1.5Nm = 1.5*1.852 km)

transectXSpan

Numeric, specifying how far transects are spanning in X-direction, given in kilometers

theseTransInCountDomain

Vector of the transects to include in the counting domain (should be adjecent transects to fully sense), default is all (=length(transectStartCoordX))

Value

A polygon of the counting domain given as a data.frame with the x- and y-coordinates of the complete polygon


PointProcess/SealPupProduction-JRSSC-code documentation built on Jan. 27, 2020, 10:06 p.m.