shawncrawley / tethysapp-nfie_data_viewer

This is a web app designed to run in the Tethys environment and is used to view RAPID output netCDF files in an interactive way.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#NFIE Data Viewer tethysapp-nfie_data_viewer

This app is created to run in the Teyths Platform programming environment. See: https://github.com/CI-WATER/tethys and http://docs.tethys.ci-water.org

##Prerequisites:

  • Tethys Platform (CKAN, PostgresQL, GeoServer)
  • hs_restclient-python (python library)
  • netCDF4-python (Python package)

###Install hs_restclient: See: http://hs-restclient.readthedocs.org/en/latest/#installation

###Install netCDF4-python on Ubuntu:

$ sudo apt-get install python-dev zlib1g-dev libhdf5-serial-dev libnetcdf-dev
$ sudo su
$ . /usr/lib/tethys/bin/activate
$ pip install numpy
$ pip install netCDF4
$ exit

###Install netCDF4-python on Redhat: Note: this app was desgined and tested in Ubuntu

$ yum install netcdf4-python
$ yum install hdf5-devel
$ yum install netcdf-devel
$ pip install numpy
$ pip install netCDF4

##Installation: Clone the app into the directory you want:

$ git clone https://github.com/shawncrawley/tethysapp-nfie_data_viewer.git
$ cd tethysapp-nfie_data_viewer

Then install the app in Tethys Platform.

###Installation for App Development:

$ . /usr/lib/tethys/bin/activate
$ cd tethysapp-nfie_data_viewer
$ python setup.py develop

###Installation for Production:

$ . /usr/lib/tethys/bin/activate
$ cd tethysapp-nfie_data_viewer
$ python setup.py install
$ tethys manage collectstatic

Restart the Apache Server: See: http://docs.tethys.ci-water.org/en/1.1.0/production/installation.html#enable-site-and-restart-apache

##Updating the App: Update the local repository and Tethys Platform instance.

$ . /usr/lib/tethys/bin/activate
$ cd tethysapp-nfie_data_viewer
$ git pull

Restart the Apache Server: See: http://tethys-platform.readthedocs.org/en/1.0.0/production.html#enable-site-and-restart-apache

About

This is a web app designed to run in the Tethys environment and is used to view RAPID output netCDF files in an interactive way.

License:Mozilla Public License 2.0


Languages

Language:JavaScript 63.7%Language:Python 22.9%Language:HTML 10.4%Language:CSS 3.0%