Description Usage Arguments Details Value References See Also Examples
Calculate ocean wave parameters using spectral analysis methods
1 2 
data 
A vector of surface heights that constitute a time series of observations. Typical units = meters. 
Fs 
Sampling frequency of the surface heights data. Units = Hz, i.e. samples per second. 
method 
A character string indicating which spectral analysis method
should be used. Choose one of 
plot 
A logical value denoting whether to plot the spectrum. Defaults
to 
kernel 
An object of class 
segments 
Numeric value indicating the number of windowing segments to
use with 
... 
Additional arguments to be passed to spectral analysis functions,
such as the 
Carries out spectral analysis of ocean wave height time series to estimate common wave height statistics, including peak period, average period, and significant wave height.
List of wave parameters based on spectral methods.
h
Average water depth. Same units as input surface heights
(typically meters).
Hm0
Significant wave height based on spectral moment 0. Same
units as input surface heights (typically meters).
This is approximately equal to the average of the highest 1/3 of the waves.
Tp
Peak period, calculated from Frequency at maximum of
spectrum. Units of seconds.
m0
Estimated variance of time series (moment 0).
T_0_1
Average period m0/m1, units seconds. Follows National
Data Buoy Center's method for average period (APD).
T_0_2
Average period (m0/m2)^0.5, units seconds. Follows
Scripps Institute of Oceanography's method for calculating average period
(APD) for their buoys.
EPS2
Spectral width parameter.
EPS4
Spectral width parameter.
Original MATLAB function by Urs Neumeier: http://neumeier.perso.ch/matlab/waves.html
waveStatsZC
for wave statistics determined using a
zerocrossing algorithm.
1 2  data(wavedata)
waveStatsSP(wavedata$SurfaceHeight.m, Fs = 4, method = 'spec.pgram', plot = TRUE)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.