Giter VIP home page Giter VIP logo

gvoulgaris0 / wavepart Goto Github PK

View Code? Open in Web Editor NEW
17.0 6.0 5.0 84.42 MB

Set of Matlab(r) functions for the partition of directional wave spectra to its wind and different swell components. The partitions are initially identified using a watershed defining algorithm and then are modified following mostly the method described in Hanson and Phillips (2001, Automated Analysis of Ocean Surface Directional Wave Spectra. Journal of Oceanic and Atmospheric Technology, 18, 278-293).

License: GNU General Public License v3.0

MATLAB 23.52% HTML 76.48%
ocean wave partition oceanography

wavepart's Introduction

WavePart image

Set of Matlab(r) functions for the partition of directional wave spectra to its wind and different swell components. The partitions are initially identified using a watershed defining algorithm and then are modified following mostly the method described in Hanson and Phillips (2001).

Authors:
Douglas Cahl and George Voulgaris
School of the Earth, Ocean and Environment
University of South Carolina
Columbia, SC, 29205, USA.

Code Updates:

  • 1/22/2020 - waveparams.m - the mean freq. (fm) estimate was incorrect; it has been corrected.
  • 1/22/2020 - partition.m was updated to catch cases when a flat spectrum is given as input.
  • 1/22/2020 - master_partition.m was updated so that it calls waveparams.m with the correct number of outputs.
  • 1/21/2020 - waveparams.m - the Hrms estimate was incorrect; also the mean direction now is given in -180 to +180 deg range.

Citation:

  • Douglas, C. and Voulgaris, G., 2019, WavePART: MATLAB(r) software for the partition of directional ocean wave spectra.: Zenodo, doi:10.5281/zenodo.2638500.

Relevant References:

  • J.L. Hanson and O.M. Philips, 2001. Automated Analysis of Ocean Surface Directional Wave Spectra. Journal of Oceanic and Atmospheric Technology, 18, 278-293.
  • J. Portilla, F.J. Ocampo-Torres, and J. Monbaliu, 2009. Spectral Partitioning and Identification of Wind Sea and Swell. Journal of Oceanic and Atmospheric Technology, 26, 107-121. DOI: 10.1175/2008JTECHO609.1
  • E. Cheynet, 2019. Pcolor in Polar Coordinates (https://www.mathworks.com/matlabcentral/fileexchange/49040-pcolor-in-polar-coordinates), MATLAB Central File Exchange. Retrieved March 16, 2019.

wavepart's People

Contributors

dougcahl avatar gvoulgaris0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wavepart's Issues

Mean direction parameter problem

Hi!
First, thanks for sharing this code.
I'm using it with some SWAN files (so I had to modify the input section for variables, as I have nautical coord and a logarithmic frequency delta). Actually, I'm able to run the code and do partitioning, but it seems there is a problem related with parameters we can extract from spectra.
The mean direction (for total spectrum and partitions) is a value very close to zero in every timeline I plot, even if the 3D plots and polar plots show a different situation.
So I tried to plot the mean dir with the sample file provided and I had the same situation.
Could you check if this is a general case for every input file?
Thanks in advance.
meand dir sample file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.