View source: R/processing_vms.R
processing_vms | R Documentation |
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.
processing_vms(data, vessel = "num_vessel", harbor)
data |
raw VMS data |
vessel |
variable to identify the vessel, it can be in character or numeric format. |
harbor |
data the coordinates of harbors |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.