tider_correct: Calculate Mean High Water spring, neap,

Description Usage Arguments Value Examples

Description

During spring tides higher high tides are produced. This package calculates mean high water spring at a desired location. Since often only short term data is available, this package uses the simltaneous comparison method to compute the datum. Data from the desired location and a control station for the same time period is required.

Usage

1
2
tider_correct(df_sub, df_ctrl, sub_level, sub_daytime, ctrl_level, ctrl_daytime,
  mhw_ctrl, s2_ctrl, mn_ctrl, type = c("spring", "neap"))

Arguments

df_sub

data frame for subordinate/short term station

df_ctrl

data fram for control station

sub_level

character of column containg gauge data for the subordinate station

sub_daytime

character of column containg daytime values subordinate station

ctrl_level

character of column containg gauge data for the control station

ctrl_daytime

character of column containg daytime values for the control station

mhw_ctrl

A numeric of the Mean High Water of the nearest NOAA Control Station

s2_ctrl

A numeric of the Prinicipal solor semidiurnal constituent from tAmatchhe nearest NOAA control station.

mn_ctrl

A numeric of the Mean range of tide from nearest NOAA control station

type

the corrected value to return

Value

returns a numeric of the mean high water spring or neap

Examples

1
2
3
4
5
6
7
8
9
i<-read.csv(system.file("extdata","i.csv",package="tider"))
e<-read.csv(system.file("extdata","e.csv",package="tider"))
i$DateTime <- lubridate::parse_date_time(paste(i$Date,i$Time),
                                          "%m/%d/%y %H:%M:%S")
e$DateTime <- lubridate::parse_date_time(paste(e$Date,e$Time),
                                       "%m/%d/%y %H:%M:%S")

m  <- tider_correct(i, e, "Level", "DateTime", "Level", "DateTime", (8.34-6.06),
                     42, 4.53, "spring")

jhollist/tider documentation built on May 19, 2019, 9:27 a.m.