Cesium-NcWMS
Cesium (cesiumjs.org) based visualization using ncWMS to serve NetCDF data and D3 (d3js.org) to display graphs.
A live running version of this software can be found here: http://forecast.ewatercycle.org
Getting started (windows, from scratch)
Install Git : http://git-scm.com/downloads
Install Node.js : http://nodejs.org/ (Make sure add node to PATH option is checked)
Create '$HOME/npm' folder (Where $HOME is c:\Users<username>\AppData\Roaming).
Open node command prompt and run npm install -g bower grunt-cli
Install Apache Tomcat (http://tomcat.apache.org/ ) 8.0 or higher.
Add C:\Users{YOUR USERNAME HERE}\node_modules\bower\bin to your PATH
Start Git bash
Change directory to your "apache tomcat installation directory"/webapps/ROOT
Type: "git clone https://github.com/NLeSC/Cesium-NcWMS.git "
Type: "cd Cesium-NcWMS"
Type: "npm install -g grunt grunt-cli"
Type: "npm install"
Type: "bower install"
Type: "bower update"
Copy the ncWMS-2.0-rc1.war from the ncWMS_dist directory to your apache-tomcat/webapps directory.
Edit the tomcat-users.xml in your apache-tomcat/conf directory and add ncWMS-admin as a role to your username
Serve some netcdf data with ncWMS via the admin interface, make sure it is CF-1.7 compliant.
Edit the serverconfig.json file in the app/ subdirectory to reflect the location of your ncWMS server.
Type: "grunt serve"
Getting started (Linux, Debian and Ubuntu based)
Prerequisites:
nodejs, http://nodejs.org/
bower, http://bower.io
Java Development Kit, https://www.java.com/
Installation:
Install nodejs
Follow instructions at joyents github website:
https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#debian-and-ubuntu-based-linux-distributions
Install bower and grunt-cli globally
sudo npm install -g bower grunt-cli
Copy
Fetch git repository
git clone https://github.com/NLeSC/Cesium-NcWMS.git
Copy
Install Apache Tomcat
Go to http://tomcat.apache.org/ and install version 8.0 or higher.
Copy the ncWMS-2.0-rc1.war file from the ncWMS_dist directory to your apache/webapps directory.
Edit the tomcat-users.xml in your apache-tomcat/conf directory and add ncWMS-admin as a role to your username.
Edit the serverconfig.json file in the app/ subdirectory to point to the location of your ncWMS server.
setup with bower
cd Cesium-NcWMS
npm install
bower install
Copy
If you already have a installed the bower packages before, but need to update them for a new version of the code, run
Start development server & open browser
Changes made to code will automatically reload web page.
Run unit tests
Generates test report and coverage inside test/reports folder.
Build a distro
The dist folder has production ready distribution.
Copyrights & Disclaimers
Cesium-NcWMS is copyrighted by the Netherlands eScience Center and
releases under the Apache License, Version 2.0.
See http://www.esciencecenter.nl for more information on the
Netherlands eScience Center.
See the "LICENSE" file for more information.