Skip to contents

Prepares tracks with time intervals and H3 cell assignment via [prepare_tracks_for_effort()], then summarises fishing hours per `(trip, h3_index, year)` combination. Used to build the effort matrix for CPUE estimation.

Usage

aggregate_trip_effort(tracks, h3_res)

Arguments

tracks

A data frame of predicted fishing points with columns `trip`, `timestamp`, `latitude`, `longitude`.

h3_res

Integer (0-15). H3 resolution for cell assignment.

Value

A tibble with columns `trip`, `h3_index`, `year`, `fishing_hours`.