Giter VIP home page Giter VIP logo

netcdf-vis's Introduction

netcdf-vis

netcdf-vis is a web application that extracts netCDF data and visualises it on a web map.

Live demo: https://smlum.github.io/netcdf-vis/app/

Using the app

The app provides users with an interactive Leaflet web map with temperature and wind data overlays.

The overlays and basemaps can be toggled from a control panel in the top right.

Building and launching

Clone the netcdf-vis repository

git clone https://github.com/samFredLumley/netcdf_vis
cd netcdf-vis/app

The app must be run on a web server. For example, using http-server:

http-server

And then in your browser go to:

http://127.0.0.1:8081

Custom netCDF data

To configure the app for custom netCDF data you must add the netCDF file to the data/netcdf directory and edit data/netcdf2.py.

It may be preferable to work with the IPython Notebook file netcdf2leaflet-velocity.ipynb to use the step-by-step commented instructions. For example, using Jupyter Notebook run:

cd netcdf-vis/app/data
jupyter notebook netcdf2leaflet-velocity.ipynb

Running the python file will generate two files: wind.json and temps_sm.js, which are used as inputs for the web map.

Map configuration

The Leaflet map can be modified in netcdf-vis.js. Modifications to the Leaflet plugins can be made in the src and dist directories.

Distribution

The demo app can be embedded into another webpage as an iframe:

<iframe src="https://samfredlumley.github.io/netcdf-vis/app/" width="600" height="400"></iframe>

A custom version of the app could be embedded in a similar way.

References

This project relies on:

Which themselves rely on:

Further work

  • Add instructions
  • Create user interface for netCDF extraction
  • Automate server side Python data processing from web app
  • Integrate netCDF conventions
  • Support time dimension
  • Support data streaming
  • Explore other temperature visualisation options

netcdf-vis's People

Contributors

smlum 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

Watchers

 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.