CLI tool for quick evaluation of wavenumber, wavelength, and depth to wavelength ratio.
A recursive Newton-Raphson function and shallow-water approximation are used to calculate and output the above.
-h
water depth-T
period-w
angular frequency-e
error
At minimum, the tool needs depth (-h
) and either period (-T
) or angular frequency (-w
) to run.
- The tool will not accept both a period and an angular frequency for clarity reasons.
The error (-e
) is an optional argument, used for establishing the desired margin between guesses from the Newton-Raphson method.
- By default the error is e-5.
python3 wavenumber.py -h 5 -T 10
python3 wavenumber.py -w 0.63 -e 0.01 -h 8