Awesome Open Source
Awesome Open Source


Check out the live demo

Wind JS

This project is an experiment in client-side data processing and visualization. Most of the code in this project is taken from and has been re-purposed to support easier application to a variety of mapping APIs and Frameworks.

How it works

The code for this project uses nothing but an HTML5 Canvas element and pure Javascript. The data come from the Global Forecast System which produces a large variety of datasets as continuous global gridded datasets (more info below). The data is passed into a JS class called Windy which takes the bounds of the map, the data, and the canvas element and then applies a Bilinear Interpolation to generate a smooth surface. Once the surface has been generated a function randomly places "particles" onto the canvas at random x/y points. Each particle is then "evolved", moving in a direction and at a velocity dictated by the interpolated surface.

The Data

Before GFS data can be used with this code it has to be converted into JSON. To do this we used another awesome project by @cambecc called grib2json. That tool converts data in the GRIB2 file format into a JSON structure with the grid represented as an array. An example result of that tool can be seen in the gfs.json file.



Find a bug or want to request a new feature? Please let us know by submitting an issue.


Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.


All the credit for this work goes to @cambecc for creating cambecc/earth. The majority of this code is directly taken from there, since it's utterly awesome.


This project inherits an MIT license from cambecc/earth because 95% of the code here was copied from that project.

A copy of the license is available in the repository's license.txt file.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,539,232
Visualization (5,424
Canvas (2,779
Web Development (1,964
Javascript Library (1,858
Esri (181
Cartography (148
Related Projects