Git Product home page Git Product logo

tethysapp-streamflow_prediction_tool's Introduction

#Streamflow Prediction Tool App tethysapp-streamflow_prediction_tool

License (3-Clause BSD)

DOI

This app requires you to have the ECMWF AutoRAPID preprocessing completed separately. See: https://github.com/erdc-cm/spt_ecmwf_autorapid_process; https://github.com/erdc-cm/spt_lsm_autorapid_process

##Prerequisites:

###Install RAPIDpy: For instructions, go to: https://github.com/erdc-cm/RAPIDpy.

Note: Before installing RAPIDpy into your python site-packages, activate your Tethys python environment:

$ . /usr/lib/tethys/bin/activate

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

$ git clone https://github.com/erdc-cm/tethysapp-streamflow_prediction_tool.git
$ cd tethysapp-streamflow_prediction_tool
$ git submodule init
$ git submodule update

Then install the app in Tethys Platform.

###Installation for App Development:

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

###Installation for Production:

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

Restart the Apache Server: See: http://docs.tethysplatform.org/en/1.3.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-streamflow_prediction_tool
$ git pull
$ git submodule update

Reset the database if changes are made to the database (this will delete your old database and regenerate a new app instance id):

$ tethys syncstores streamflow_prediction_tool -r

Restart the Apache Server: See: http://docs.tethysplatform.org/en/1.3.0/production/installation.html#enable-site-and-restart-apache

Troubleshooting

ImportError: No module named packages.urllib3.poolmanager

$ pip install pip --upgrade

Restart your terminal

$ pip install requests --upgrade

Crontab Errors

Check if your server has crontab permissions: Ex:

# su -s /bin/bash apache
bash-4.2$ crontab -e
You (apache) are not allowed to use this program (crontab)
See crontab(1) for more information

If not, add the permissions in the cron.allow file.

# echo apache >>/etc/cron.allow

SELinux

If you are using a drive/folder not associated with your normal apache server locations, you may need to set SELinux to allow it. In this example, I am using a folder named /tethys

# semanage fcontext -a -t httpd_sys_content_t '/tethys(/.*)?'
# restorecon -Rv /tethys

tethysapp-streamflow_prediction_tool's People

Contributors

mfarthin avatar

Watchers

James Cloos avatar Pabitra Dash avatar Jeff Horsburgh avatar Nathan Swain avatar  avatar Alan D. Snow 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.