A function to calculate wave number.

waveNumL(f, h)

Arguments

f

A numeric vector of wave frequencies

h

A numeric vector of water depths (usually in units of meters)

Value

The wave number.

References

Modified from MATLAB function by Urs Neumeier: http://neumeier.perso.ch/matlab/waves.html Based on polynomial approximation from Hunt, J. N. 1979. “Direct Solution of Wave Dispersion Equation,” ASCE Jour. Waterw., Port, Coastal and Ocean Engr., Vol 105, pp 457-459 suggested by George Voulgaris, University of South Carolina