| Title: | Tide Heights |
|---|---|
| Description: | Calculates tide heights based on tide station harmonics. It includes the harmonics data for 1285 US stations. The harmonics data was converted from <https://github.com/millerlp/rtide/blob/main/data-raw/harmonics-dwf-20251228-free.tar.xz> NOAA web site data processed by David Flater for 'XTide 2'. The code to calculate tide heights from the harmonics is based on 'XTide 2'. |
| Authors: | Joe Thorley [aut] (ORCID: <https://orcid.org/0000-0002-7683-4592>), Luke Miller [aut, cre], Abram Fleishman [aut], Poisson Consulting [cph] |
| Maintainer: | Luke Miller <[email protected]> |
| License: | GPL-3 |
| Version: | 0.0.12.9000 |
| Built: | 2026-10-06 10:24:11 UTC |
| Source: | https://github.com/millerlp/rtide |
High/Low Tide Predictions from https://tidesandcurrents.noaa.gov/tide_predictions.html.
brandywinebrandywine
A tbl data frame:
The station name (chr).
The date time (time).
The tide height in m (dbl).
A object of class tide_harmonics providing tidal harmonic data for US stations.
harmonicsharmonics
An object of class tide_harmonics of length 4.
Converted from harmonics-dwf-20261228-free.tar.xz, NOAA web site data processed by David Flater for XTide.
Tests if object inherits from class tide_harmonics.
is.tide_harmonics(x)is.tide_harmonics(x)
x |
The object to test. |
High/Low Tide Predictions from https://tidesandcurrents.noaa.gov/tide_predictions.html.
montereymonterey
A tbl data frame:
The station name (chr).
The date time (time).
The tide height in m (dbl).
Generates sequence of date times.
tide_datetimes( minutes = 60L, from = as.Date("2015-01-01"), to = as.Date("2015-12-31"), tz = "America/Los_Angeles" )tide_datetimes( minutes = 60L, from = as.Date("2015-01-01"), to = as.Date("2015-12-31"), tz = "America/Los_Angeles" )
minutes |
An integer of the number of minutes between tide heights |
from |
A Date of the start of the period of interest |
to |
A Date of the end of the period of interest |
tz |
A string of the time zone. |
A POSIXct vector.
tide_datetimes()tide_datetimes()
Calculates tide height at specified stations based on the supplied harmonics object.
tide_height( stations = "Monterey Harbor", minutes = 60L, from = as.Date("2015-01-01"), to = as.Date("2015-01-01"), tz = "UTC", harmonics = rtide::harmonics )tide_height( stations = "Monterey Harbor", minutes = 60L, from = as.Date("2015-01-01"), to = as.Date("2015-01-01"), tz = "UTC", harmonics = rtide::harmonics )
stations |
A character vector of stations to match - treated as regular expressions. |
minutes |
An integer of the number of minutes between tide heights |
from |
A Date of the start of the period of interest |
to |
A Date of the end of the period of interest |
tz |
A string of the time zone. |
harmonics |
The harmonics object. |
A data frame of the tide heights in meters by the number of minutes for each station from from to to.
Calculates tide height at specified stations at particular date times based on the supplied harmonics object.
tide_height_data(data, harmonics = rtide::harmonics)tide_height_data(data, harmonics = rtide::harmonics)
data |
A data frame with the columns Station and DateTime. |
harmonics |
The harmonics object. |
A data frame of the tide heights in meters.
Determines the closest slack tide for specified stations at particular date times based on the supplied harmonics object.
tide_slack_data(data, harmonics = rtide::harmonics)tide_slack_data(data, harmonics = rtide::harmonics)
data |
A data frame with the columns Station and DateTime. |
harmonics |
The harmonics object. |
A data frame of the slack tide date times and heights in meters.
Gets vector of matching stations.
tide_stations(stations = ".*", harmonics = rtide::harmonics)tide_stations(stations = ".*", harmonics = rtide::harmonics)
stations |
A character vector of stations to match - treated as regular expressions. |
harmonics |
The harmonics object. |