Code Monkey home page Code Monkey logo

winvelviz's Introduction

Wind Visualization Over Time

This repository describes a method to visualize winds over long periods of time.

couple days demo

The demo shows 12 days of wind data. The brighter the color - the higher was the speed in that area. The darker the color - the slower the speed.

The landmass was not intentionally rendered in this visualization. Winds velocities are lower over land and that reveals us the "map" in the background.

The image above has poor quality (to ensure that this repository loads faster). To see a high resolution video for a longer period of time please go here:

The method

In a single day we can "capture" wind by recording its velocity vector. If we record these vectors in every point on the Earth, we'd get nothing else but a vector field.

One way to visualize a vector field is to use streamlines. We drop thousands particles onto the vector field, and trace their movement. There are many ways to draw traces "nicely" and one of such ways was implemented in anvaka/streamlines library.

Here is how a single snapshot of streamlines look like:

single streamlines

click on the image to see high resolution version - you will notice individual traces

Now that we have a single snapshot we can collect multiple snapshots day by date, and concatenate them into single video.

The data

The data comes from https://nomads.ncdc.noaa.gov/data/gfsanl/ - I downloaded every grib file for the year 2018, and extracted vector fields for winds at the height of 10 meters.

Along the way I wrote a few tools to extract data and turn it into images (see the code folder ).

Unfortunately there are 10-20 days missing from this source. I couldn't find an alternative, but it was not critical for my exploration.

Thanks!

Thank you for reading this! I hope you enjoyed it. Please let me know if you have any questions my twitter is always open, or send me an email.

Also if you like what I'm doing and want to support me: https://www.patreon.com/anvaka

winvelviz's People

Contributors

anvaka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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