0% found this document useful (0 votes)
42 views7 pages

Tide Height Calculation in R

The 'rtide' package, version 0.0.9, calculates tide heights based on harmonics data from 637 US stations. It utilizes data processed by David Flater for 'XTide' and is available under the GPL-3 license. The package includes various functions for generating tide height predictions and managing tide data.

Uploaded by

asepmamun15
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views7 pages

Tide Height Calculation in R

The 'rtide' package, version 0.0.9, calculates tide heights based on harmonics data from 637 US stations. It utilizes data processed by David Flater for 'XTide' and is available under the GPL-3 license. The package includes various functions for generating tide height predictions and managing tide data.

Uploaded by

asepmamun15
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Package ‘rtide’

October 14, 2022


Title Tide Heights
Version 0.0.9
Description Calculates tide heights based on tide station harmonics. It
includes the harmonics data for 637 US stations. The harmonics data
was converted from
<https://github.com/poissonconsulting/rtide/blob/master/data-raw/
harmonics-dwf-20151227-free.tar.bz2>,
NOAA web site data processed by David Flater for 'XTide'. The code to
calculate tide heights from the harmonics is based on 'XTide'.
License GPL-3

URL https://github.com/poissonconsulting/rtide

BugReports https://github.com/poissonconsulting/rtide/issues
Depends R (>= 3.4)
Imports abind, chk, dttr2, tibble, utils
Suggests covr, ggplot2, scales, testthat
Encoding UTF-8
LazyData true
RoxygenNote 7.1.1
NeedsCompilation no
Author Joe Thorley [aut, cre] (<https://orcid.org/0000-0002-7683-4592>),
Luke Miller [aut],
Abram Fleishman [aut],
Poisson Consulting [cph]
Maintainer Joe Thorley <[email protected]>
Repository CRAN
Date/Publication 2021-05-29 21:50:03 UTC

1
2 harmonics

R topics documented:
brandywine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
harmonics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
is.tide_harmonics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
monterey . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
tide_datetimes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
tide_height . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
tide_height_data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
tide_slack_data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
tide_stations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Index 7

brandywine Brandywine Tide Height Data

Description
High/Low Tide Predictions from https://tidesandcurrents.noaa.gov/tide_predictions.
html.

Usage
brandywine

Format
A tbl data frame:

Station The station name (chr).


DateTime The date time (time).
MLLW The tide height in m (dbl).

harmonics Harmonics

Description
A object of class tide_harmonics providing tidal harmonic data for US stations.

Usage
harmonics
is.tide_harmonics 3

Format
An object of class tide_harmonics of length 4.

Details
Converted from harmonics-dwf-20151227-free, NOAA web site data processed by David Flater for
XTide.

is.tide_harmonics Is tide_harmonics

Description
Tests if object inherits from class tide_harmonics.

Usage
is.tide_harmonics(x)

Arguments
x The object to test.

monterey Monterey Tide Height Data

Description
High/Low Tide Predictions from https://tidesandcurrents.noaa.gov/tide_predictions.
html.

Usage
monterey

Format
A tbl data frame:

Station The station name (chr).


DateTime The date time (time).
MLLW The tide height in m (dbl).
4 tide_height

tide_datetimes Tide Date Times

Description
Generates sequence of date times.

Usage
tide_datetimes(
minutes = 60L,
from = as.Date("2015-01-01"),
to = as.Date("2015-12-31"),
tz = "PST8PDT"
)

Arguments
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.

Value
A POSIXct vector.

Examples
tide_datetimes()

tide_height Tide Height

Description
Calculates tide height at specified stations based on the supplied harmonics object.

Usage
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_data 5

Arguments

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.

Value

A data frame of the tide heights in m by the number of minutes for each station from from to to.

tide_height_data Tide Height Data

Description

Calculates tide height at specified stations at particular date times based on the supplied harmonics
object.

Usage

tide_height_data(data, harmonics = rtide::harmonics)

Arguments

data A data frame with the columns Station and DateTime.


harmonics The harmonics object.

Value

A data frame of the tide heights in m.


6 tide_stations

tide_slack_data Tide Slack Data

Description
Determines the closest slack tide for specified stations at particular date times based on the supplied
harmonics object.

Usage
tide_slack_data(data, harmonics = rtide::harmonics)

Arguments
data A data frame with the columns Station and DateTime.
harmonics The harmonics object.

Value
A data frame of the slack tide date times and heights in m.

tide_stations Tide Stations

Description
Gets vector of matching stations.

Usage
tide_stations(stations = ".*", harmonics = rtide::harmonics)

Arguments
stations A character vector of stations to match - treated as regular expressions.
harmonics The harmonics object.
Index

∗ datasets
brandywine, 2
harmonics, 2
monterey, 3

brandywine, 2

harmonics, 2

is.tide_harmonics, 3

monterey, 3

tide_datetimes, 4
tide_height, 4
tide_height_data, 5
tide_slack_data, 6
tide_stations, 6

You might also like