process_ais_data: Processes raw AIS data, creates cleaned data frame of hourly...

Description Usage Arguments Value Examples

View source: R/process_ais_data.R

Description

Processes raw AIS data, creates cleaned data frame of hourly observations with speed calculations

Usage

1
process_ais_data(aisdata, min_from_hr = 7.5, time_zone = "GMT")

Arguments

aisdata

The data frame consisting of the combinations of zones, years, months to process

min_from_hr

Window around the top of the hour used. Every vessel might not have a position recorded at exactly 12:00 for example, so the closest position +/- minutes_from_hour is used. Defaults to 7.5 (15 min window)

time_zone

The time zone used in calculations (e.g. "GMT", "UTC")

Value

processed data frame

Examples

1
2
3
4
5
6
7
8
## Not run: 
df = data.frame("month"=1:4, "year" = 2009, "zone"=10)
downsample_ais(df, raw = TRUE) # gets raw data from marine cadastre

d = readRDS("filtered/Zone10_01_2009.rds")
d_processed = process_ais_data(d, time_zone = "UTC")

## End(Not run)

eric-ward/getais documentation built on Sept. 22, 2020, 1:48 a.m.