Git Product home page Git Product logo

wind's Introduction

wind

let current wind dance as moving streamlines on desktop background

wind

1. download & decode wind data

the lua script wind_decode.lua downloads recent wind as json from noaa (not yet), imports and decodes it and write to csv, to be analysed by octave script wind_thread.m.

lua wind_decode.lua

2. calculate streamlines

the octave script wind_thread.m imports recent wind data from wind.csv generated in (1), calculates some 10k streamlines from random positions and saves them, seperated by "0 0" lines, as streamlines.dat to be read by conkys lua script (3).

octave wind_thread.m

3. draw

the lua script wind_weave.lua imports the streamlines from streamlines.dat, and draws them using conkys cairo backend via wind_blow.lua. This script is run automatically by (4), but has to be changed to adjust opacity, linecolor, etc.

4. start conky

conky config script to load lua script wind_weave.lua, which prints the wind streamlines in streamlines.dat:

conky -c ~/wind/wind_blow.lua

todo

  • shell script: (1) and (2) need to be run once every time the noaa updates the wind data.

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.