TideTable: Computes a tide table

Description Usage Arguments Value References Examples

View source: R/TideTable.R

Description

Takes a data frame as input with date time, high water and height information and returns a tide table

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
TideTable(
  dataInput,
  otz = 1,
  hwi = "99:99",
  sharp_hwi = TRUE,
  asdate,
  astime,
  aedate,
  aetime,
  ssdate,
  sstime,
  sedate,
  setime,
  stz = 1
)

Arguments

dataInput

A data frame with the columns observation_date, observation_time, high_or_low_water and height. See attached data for correct formats.

otz

The time zone of the observations

hwi

The average of all intervals between the Moon's transit (upper or lower) over the Greenwich meridian and the following high or low waters for all phases of the Moon is known as mean high water lunitidal interval and is abbreviated to high water interval (hwi). Please only supply a value, when you are sure. Otherwise leave the default value "99:99" untouched. hwi is then computed for you.

sharp_hwi

Default is TRUE, which results in a sharp hwi computation. Set on FALSE if you analyze shorter time intervals and EstimateTmhwi function returns NA.

asdate

A string indication the date you want the analysis to start with. Format: "yyyy/mm/dd".

astime

A string indicating the time you want the analysis to start with. Format: "hh:mm:ss"

aedate

A string indication the date you want the analysis to end with. Format: "yyyy/mm/dd".

aetime

A string indicating the time you want the analysis to end with. Format: "hh:mm:ss"

ssdate

Synthesis start date. This indicates the date you want your tide table to start with. Format: See above

sstime

Synthesis start time. The starting time for your tide table. Format: See above

sedate

Synthesis end date. Format: See above

setime

Synthesis end time. Format: See above

stz

Dummy for later extension to modify target time zone.

Value

Returns a list with elements of the analysis, fitting and the tide table for given data

c.table

The complete synthesis data as a data.table object

tide.table

The tide table as a data.table object

lm.coeff

Coefficients for the eight fitted linear models used in the synthesis

diff.analyse

Time in days spanning the analysis

i.analyse

How many different cases where used in the analysis

References

Horn, W. (1960) Some Recent Approaches to Tidal Problems. Int. Hydrogr. Rev. 37(2), 65-84

Godin, Gabriel (1972) The Analysis of Tides. Toronto, 264pp

https://www.bsh.de/DE/PUBLIKATIONEN/_Anlagen/Downloads/Meer_und_Umwelt/Berichte-des-BSH/Berichte-des-BSH_50_de.pdf?__blob=publicationFile&v=13/

https://doi.org/10.5194/os-15-1363-2019

Examples

1
2
3
4
TideTable(dataInput = observation, asdate = "1991/01/01", 
astime = "12:00:00", 
aedate = "1992/01/01", aetime = "12:00:00", ssdate = "1991/01/01", 
sstime = "00:00:00", sedate = "1991/01/31", setime = "21:00:00")

TideTables documentation built on Dec. 16, 2020, 1:06 a.m.