GithubHelp home page GithubHelp logo

arheem / wave-modelling Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mariliasr/wave-modelling

0.0 0.0 0.0 1.78 MB

Wave modelling with SWAN. Includes data cleaning, munging and visualisation.

Jupyter Notebook 99.67% Python 0.33%

wave-modelling's Introduction

wave-modelling

Notebooks and functions used for wave modelling with SWAN. Includes data preparation, cleaning, munging, and visualisation.

The script spec2d.py returns the 2d-spectrum from Hs, Tp, pdir and wave spread. The script spec2d_era.py returns the 2d-spectrum from Hs, Tp, pdir and cossene power.

The notebooks have the following objectives:

  • buoy_csiro_correl and buoy_era_correl:

    • Read .csv files containing buoy observations
    • Read netcdf file of CSIRO reanalysis containing mean wave period
    • Clean and prepare buoy data
    • Select ERA5 timeseries with the same coordinates and date/times of buoy observations
    • Correlate ERA5 wave period to buoy observations
    • Plot the correlations as scatter plots
  • create_specs and create_specs_era:

    • Calculate wave spectra from wave parameters of ERA5 partitions
    • Write it to text file to use as input for SWAN
  • create_wind_and_timepoints:

    • Writes wind and timepoint inputs for SWAN from netcdf files
  • get_ww3:

    • Download wave watch 3 dataset from noaa repository via web scraping
  • netcdf_xyz:

    • Writes gebco netcdf bathymetry to a .xyz file
  • plot_specs and plot_specs_datasets:

    • plot_specs plots 2d-spectrum reconstructed from CSIRO wave partitions to a 3d plot
    • plot_specs_datasets plots 2d-spectra from three different sources: (1) downloaded directly from ERA5, reconstructed from ERA5 partitions, and reconstructed from CSIRO partitions. The plots are in polar coordinates. Also plots spectra-extracted Hs as timeseries for comparison purposes
  • swan_out_processing:

    • Processes the output of SWAN. Extracts data from selected coordinates (wave buoy coordinates for correlation purposes)
    • Saves timeseries to numpy array

wave-modelling's People

Contributors

mariliasr 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.