Skip to content

goldford/webgl-wind

 
 

Repository files navigation

WebGL Wind Patterns in the Strait of Georgia and Salish Sea — World Demo - Salish Sea Demo

A WebGL-powered visualization of wind power. Capable of rendering up to 1 million wind particles at 60fps.

This project is forked from the work of:

which in turn was heavily inspired by the work of:

Running the demo locally

The current version is build to run and test on github pages. See the original for a version that can run locally:

Downloading and processing wind data, and running the demo

The ERA5 model is a retrospective reanalysis of past weather conditions produced by the European Centre for Medium-Range Weather Forecasts. The original visualization code project uses ecCodes (e.g. brew install eccodes) to download wind data directly from a website, but due to issues installing on Windows, I instead reprogrammed the processing of copernicus NetCDF files in Python (see notebook). To run and customize this code:

  1. Download copernicus model files as NetCDF and place it in the 'data' folder.
  2. Run the Python script provided in the Jupyter noteboook to produce a PNG file.
  3. If desired, swap out or remove the geoJSON and background elevation image (set in the index.html and index.js files in demo folder). You should do this if you're downloading different data than I used.
  4. Run the 'demo' which uses the PNG file and interpolates it using tools in WEBGL and simulates particles.

Notes:

  • drawing of geoJSON correctly is fiddley. To properly align with the wind image you'll need to play with params in index.js
  • the user controls are implemented using dat.gui

About

Historic wind visualization with WebGL particles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rich Text Format 34.2%
  • JavaScript 31.2%
  • Jupyter Notebook 28.3%
  • GLSL 3.1%
  • HTML 2.0%
  • Shell 1.2%