Adds a unique tide identifier, waterlevel, time from high tide and time to low tide for tracking data (both in minutes).
Usage
atl_add_tidal_data(
data,
tide_data,
tide_data_highres,
waterdata_resolution = "10 minute",
offset = 0
)
Arguments
- data
A dataframe with the tracking data with the timestamp column 'time' in UTC.
- tide_data
Data on the timing (in UTC) of low and high tides as output from the function
fread
of the packagedata.table
.- tide_data_highres
Data on the timing (in UTC) of the waterlevel in small intervals (e.g. every 10 min) as provided from Rijkwaterstaat as output from the function
fread
of the packagedata.table
.- waterdata_resolution
The resolution of the high resolution waterlevel data. This is used for matching the high resolution tidal data to the tracking data. Defaults to 10 minutes but can be set differently.
- offset
The offset in minutes between the location of the tidal gauge and the tracking area. This value will be added to the timing of the waterdata.