processing_vms: Processing VMS data

View source: R/processing_vms.R

processing_vmsR Documentation

Processing VMS data

Description

The processing_vms automatically pre-processes raw VMS data. The VMS data must contain a vessel identifier variable (Cod_vessel or Name_vessel), a variable in date format (year, month, day and time), and the position variables (latitude and longitude) in decimal degrees.

The processing of the VMS data consists of: sorting the VMS data by vessel and date; calculate the distance between each VMS emission (orthodromic distance); calculate the distance from each emission to the nearest port; calculate the speed of the vessel at each time step; calculate the elapsed time in hours at each time instant; calculate course and change of course.

Distance variables are expressed in nautical miles, vessel speed in miles/hour, course and course change in decimal degrees.

Usage

processing_vms(data, vessel = "num_vessel", harbor)

Arguments

data

raw VMS data

vessel

variable to identify the vessel, it can be in character or numeric format.

harbor

data the coordinates of harbors


PabloMBooster/vmsR documentation built on June 29, 2023, 11:16 a.m.