poissonconsulting / rtide

Licence: GPL-3.0 license
R package to calculate tide heights

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to rtide

Osrm
Shortest Paths and Travel Time from OpenStreetMap with R
Stars: ✭ 160 (+1042.86%)
Mutual labels:  cran
Checkmate
Fast and versatile argument checks
Stars: ✭ 174 (+1142.86%)
Mutual labels:  cran
Pacman
A package management tools for R
Stars: ✭ 220 (+1471.43%)
Mutual labels:  cran
Dbscan
Density Based Clustering of Applications with Noise (DBSCAN) and Related Algorithms - R package
Stars: ✭ 161 (+1050%)
Mutual labels:  cran
Arsenal
An Arsenal of 'R' Functions for Large-Scale Statistical Summaries
Stars: ✭ 171 (+1121.43%)
Mutual labels:  cran
Icd
Fast ICD-10 and ICD-9 comorbidities, decoding and validation in R. NB use main instead of master for default branch.
Stars: ✭ 178 (+1171.43%)
Mutual labels:  cran
V8
Embedded JavaScript Engine for R
Stars: ✭ 155 (+1007.14%)
Mutual labels:  cran
Reactr
React for R
Stars: ✭ 227 (+1521.43%)
Mutual labels:  cran
Recommenderlab
recommenderlab - Lab for Developing and Testing Recommender Algorithms - R package
Stars: ✭ 174 (+1142.86%)
Mutual labels:  cran
Bookdownplus
The easiest way to use R package bookdown for writing varied types of books and documents
Stars: ✭ 198 (+1314.29%)
Mutual labels:  cran
Import
An Import Mechanism For R
Stars: ✭ 165 (+1078.57%)
Mutual labels:  cran
Simmer
Discrete-Event Simulation for R
Stars: ✭ 170 (+1114.29%)
Mutual labels:  cran
Collapse
Advanced and Fast Data Transformation in R
Stars: ✭ 184 (+1214.29%)
Mutual labels:  cran
Webservices
CRAN WebTechnologies Task View
Stars: ✭ 160 (+1042.86%)
Mutual labels:  cran
Margins
An R Port of Stata's 'margins' Command
Stars: ✭ 225 (+1507.14%)
Mutual labels:  cran
Explor
Interfaces for Multivariate Analysis in R
Stars: ✭ 157 (+1021.43%)
Mutual labels:  cran
Randomforestexplainer
A set of tools to understand what is happening inside a Random Forest
Stars: ✭ 175 (+1150%)
Mutual labels:  cran
Littler
A scripting and command-line front-end for GNU R
Stars: ✭ 238 (+1600%)
Mutual labels:  cran
Tint
Tint is not Tufte
Stars: ✭ 226 (+1514.29%)
Mutual labels:  cran
Opendata
CRAN OpenData Task View
Stars: ✭ 188 (+1242.86%)
Mutual labels:  cran

rtide

Lifecycle: stable R-CMD-check Codecov test coverage License: GPL3 CRAN status CRAN downloads

Introduction

rtide is an R package to calculate tide heights based on tide station harmonics.

It includes the harmonics data for 637 US stations.

Utilisation

library(tibble)
library(rtide)
#> rtide is not suitable for navigation

data <- rtide::tide_height(
  "Monterey Harbor",
  from = as.Date("2016-07-13"), to = as.Date("2016-07-15"),
  minutes = 10L, tz = "PST8PDT"
)

print(data)
#> # A tibble: 432 × 3
#>    Station                               DateTime            TideHeight
#>    <chr>                                 <dttm>                   <dbl>
#>  1 Monterey, Monterey Harbor, California 2016-07-13 00:00:00      0.514
#>  2 Monterey, Monterey Harbor, California 2016-07-13 00:10:00      0.496
#>  3 Monterey, Monterey Harbor, California 2016-07-13 00:20:00      0.481
#>  4 Monterey, Monterey Harbor, California 2016-07-13 00:30:00      0.468
#>  5 Monterey, Monterey Harbor, California 2016-07-13 00:40:00      0.457
#>  6 Monterey, Monterey Harbor, California 2016-07-13 00:50:00      0.449
#>  7 Monterey, Monterey Harbor, California 2016-07-13 01:00:00      0.443
#>  8 Monterey, Monterey Harbor, California 2016-07-13 01:10:00      0.440
#>  9 Monterey, Monterey Harbor, California 2016-07-13 01:20:00      0.439
#> 10 Monterey, Monterey Harbor, California 2016-07-13 01:30:00      0.441
#> # … with 422 more rows
library(ggplot2)
library(scales)
ggplot(data = data, aes(x = DateTime, y = TideHeight)) +
  geom_line() +
  scale_x_datetime(
    name = "Date",
    labels = date_format("%d %b %Y", tz = "PST8PDT")
  ) +
  scale_y_continuous(name = "Tide Height (m)") +
  ggtitle("Monterey Harbour")

Installation

To install the latest release from CRAN

install.packages("rtide")

To install the developmental version from GitHub

# install.packages("remotes")
remotes::install_github("poissonconsulting/rtide")

Shiny

Tide heights can be also obtained using rtide through a shiny interface developed by Seb Dalgarno.

Contribution

Please report any issues.

Pull requests are always welcome.

Code of Conduct

Please note that the rtide project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Inspiration

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].