Public Lab Wiki documentation



infragram-webapp-dev

This is a revision from June 05, 2013 05:31. View all revisions
4 | 35 | | #7790

infrapix.png

Using Flask, Twitter Bootstrap, and Heroku

Craig's code for doing the ndvi conversion

Image Processing in Python

Discussion threads on processing NDVI in this manner, appropriate color tables, etc:

-https://mail.google.com/mail/u/0/#search/craig/13ec4525bc160f90?compose=13ec886588389872 - https://groups.google.com/group/plots-infrared/browse_thread/thread/dcf3a9a0518ec55e - https://groups.google.com/group/plots-infrared/browse_thread/thread/3c4ebab96e9a90ac

Test app on Heroku

Installing into Local Virtualenv Development Environment

Install base system packages (Debian based OSes) sudo apt-get install python-dev python-virtualenv libpng-dev libfreetype6-dev

Create a virtual environment and activate it virtualenv venv --distribute source venv/bin/activate

Note that your command-line prompt may now be prepended with "(venv)". Now packages installed using pip will only be in this environment. Use the command deactivate to exit this mode. Finish installing dependencies pip install flask flask-sijax numpy matplotlib pillow

Check out the code from GitHub sudo apt-get install git git clone https://github.com/dwblair/infrapix.git

Run locally cd infrapix python runLocally.py

Open browser to url http://127.0.0.1:5000/ to test the web app!

test images for command-line utility

river.jpg