form.no: Calculate tidal form number

Description Usage Arguments Value Examples

View source: R/form_no.R

Description

Uses harmonic constituent data from the NOAA CO-OPS website to calculate tidal form numbers as the ratio of the sum of K1 and O1 diurnal harmonic constituent amplitudes to the sum of the M2 and S2 semidiurnal amplitudes. Requires an internet connection.

Usage

1
form.no(station)

Arguments

station

station ID number or vector of IDs, available on CO-OPS website (https://www.tidesandcurrents.noaa.gov/stations.html?type=Water+Levels).

Value

a dataframe of station number(s) and corresponding tidal form number(s).

Examples

1
2
3
4
5
6
7
## Not run: 
a <- form.no()
stn.list <- c("8467150", "8461490", "9454240")
b <- form.no(stn.list)
b

## End(Not run) 

troyhill/VulnToolkit documentation built on Aug. 10, 2021, 10:55 a.m.