Giter Site home page Giter Site logo

leo-rain / ocean-wave-spectra Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aviputri/ocean-wave-spectra

0.0 1.0 0.0 130 KB

A tool to generate a spectrum of a set of sea water level (SWL) data, and then to create a synthetic SWL and classify the synthetic waves parameters.

MATLAB 25.32% Python 74.68%

ocean-wave-spectra's Introduction

Ocean-Wave-Spectra

A tool to generate a spectrum of a set of sea water level (SWL) data, and then to create a synthetic SWL and classify the synthetic waves parameters.

There are Python and MATLAB scripts to run this project. The Python script is indeed much faster.

MATLAB code:

  • The main of the MATLAB scripts is processall.m, which will call the zerodown function, to analyze the individual waves out of the SWL data by zerodown-crossing.
  • In the zerodown.m, we are using lagrpol function (lagrpol.m) to use Lagrange interpolation on the SWL data gaps, and then the individual waves will be sorted to get the wave parameters.
  • sintetis.m is used to create the wave spectrum (calling the spectrum.m in the script), synthetic SWL (ema.m), and then to repeat again the zerodown.m to identify and sort the individual waves.

Python code:

  • All the codes are within 1 script (main.py). In the main process, we call through the functions at the bottom of the file.
  • Functions can be called separately, ie for just zerodown_data or synthetic, type 'import main' in python interpreter and enter the functions manually.
  • deleteblank.py is used to delete lines of blank data (-) if there is any
  • break.py is used to separate the data into hourly files

ocean-wave-spectra's People

Contributors

aviputri avatar

Watchers

James Cloos avatar

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.