GithubHelp home page GithubHelp logo

gpcureton / sunglint-polyspectra Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 98 KB

Simulates the elevation and slope of the ocean surface with a particular power spectrum, and applies the specular condition to the slope to calculate the surface sunglint. Correlations are added between various elevation phase components.

License: GNU General Public License v3.0

IDL 50.47% Shell 0.33% Prolog 2.45% Python 46.75%
sunglint ocean nonlinear cumulants slope polyspectra moments hos cumulant-functions slope-realisations elevation

sunglint-polyspectra's Introduction

Sunglint Cumulant Function Simulation

This program simulates multiple elevation and slope realisations with given spectra, introducing quadratic phase coupling at selected wavenumbers. Glint realisations are computed from the slope realisations. The average elevation, slope and glint moments and cumulants, and moment and cumulant functions are computed. The results are written to a HDF5 file.

Dependencies

  • pytables
  • h5py
  • numpy
  • scipy

Usage:

usage: cumulantFunctionSimulate.py [-h] [-n N] [-N NN] [-d DELTA_X]
                                   [-r NUMREALS] [-S SPECTRUMTYPE] [-l]
                                   [-o OUTFILE] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -n N, --numdatapoints N
                        Number of points of the glint dataset. Must be an
                        integer power of 2. [default: 1024]
  -N NN, --num2Dpoints NN
                        Number of points of the bispectrum array side. Must be
                        an integer power of 2. [default: 64]
  -d DELTA_X, --deltax DELTA_X
                        The spatial increment in meters. [default: 0.02]
  -r NUMREALS, --num_realisations NUMREALS
                        Number of realisations. [default: 100]
  -S SPECTRUMTYPE, --spectrum_type SPECTRUMTYPE
                        Form of the elevation power spectrum. Possible values
                        are... 'phillips_3', 'phillips_4', 'gaussian'.
                        [default: 'phillips_3']
  -l, --nonlinear_modes
                        Switch on nonlinear modes. [default: False]
  -o OUTFILE, --output_file OUTFILE
                        The full path of the output HDF5 file. [default:
                        'outSimulatedGlint.h5']
  -v, --verbose         each occurrence increases verbosity 1 level from
                        ERROR: -v=WARNING -vv=INFO -vvv=DEBUG

sunglint-polyspectra's People

Contributors

gpcureton avatar

Watchers

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