AFOV_Area_Habtable: Calculates area per habitat frame

View source: R/FOV_Area_Habtable.R

AFOV_Area_HabtableR Documentation

Calculates area per habitat frame

Description

Calculates area per habitat frame using the observed habitat as the midpoint and average altitude and pitch over that time period. (First and last row will be NA)

Usage

AFOV_Area_Habtable(
  hab_timestamps,
  all_timestamps,
  alt,
  pitch,
  speed,
  cam_angle = 32.8,
  H_AFOV_air,
  bin_size = NULL,
  use_median = c(FALSE, FALSE, FALSE)
)

Arguments

hab_timestamps

vector of timestamps of habitat frames

all_timestamps

vector of timestamps from Master 1Hz that corresponding to alt, pitch, and speed

alt

vector of altitudes from Master 1Hz

pitch

vector of pitches from Master 1Hz

speed

vector of CBASS speeds in knots from Master 1Hz

cam_angle

camera angle in degrees

H_AFOV_air

Horizontal angular field of view in air in degrees for the camera system (depends on lens and image sensor size)

bin_size

bin size in seconds (if not specified will be calculated)

use_median

Use median instead of mean for alt, pitch, and speed respectively


ailich/mytools documentation built on Jan. 7, 2023, 11:16 a.m.