Coder Social home page Coder Social logo

xiaolingis / 3d-wind-field Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raymanng/3d-wind-field

0.0 2.0 1.0 60.17 MB

Visualize wind field on Cesium

Home Page: https://raymanng.github.io/3D-Wind-Field/demo/

License: GNU General Public License v3.0

JavaScript 99.89% GLSL 0.03% HTML 0.01% CSS 0.07% PowerShell 0.01%

3d-wind-field's Introduction

3D-Wind-Field Demo

Visualize the wind on earth, powered by Cesium JS.

More detail is in this blog post: GPU Powered Wind Visualization With Cesium

How to start the application

Just create a HTTP server for the "index.html" file in the "Cesium-3D-Wind" folder.

If you have VSCode installed, I recommend to intall the "liveserver" extension.

Besides, remember to modify the "runtimeExecutable" option in ".vscode\launch.json" file before starting debug in VSCode.

How to use your own NetCDF data

The NetCDF file is in the "data" folder, it should contains below variables:

  • U (lev, lat, lon) @min @max
  • V (lev, lat, lon) @min @max

"lev", "lat", "lon" are names of dimensions, and "min", "max" are the attributes of the variable. For more detail, use Panoply to read the "data/demo.nc" file

please keep in mind that:

  • You must use NetCDF version 3 (NOT 4, NOT other file types like HDF or GRIB) file
  • The order of dimensions matter
  • Use small (less than 100MB) NetCDF file if possible, or your browser may crash. You may want to use NCO (NetCDF Operator) or CDO (Climate Data Operator) to split the NetCDF data
  • Don't forget to change the filename in the source code ("gui.js")

Data layout

demo.nc

Note:

  • netcdfjs will read the data row by row, so array(0) is (lon 0, lat -90)
  • The range of longitude is [0,360], not [-180, 180]

Note

  • The demo data is from NOAA Global Forecast System.
  • The original data is in GRIB2 format and I used toolsUI to convert the GRIB2 file to a NetCDF V3 file.
  • You might want to modify the default parameters for a better visualization result, parameters can be changed in the left panel.
  • If possible, you should run this demo on Chrome, because I did not test it on other browser.

Credits

This demo makes use of below repos:

3d-wind-field's People

Contributors

maxdow avatar raymanng avatar zouyaoji avatar

Watchers

 avatar  avatar

Forkers

zyxgis

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.