Public Lab Wiki documentation

Infragram Webapp Dev

240 views | Last edited by NickJemis about 5 years ago | #7790

This is the new (beta) Inline Rich Wikis system. Use the "pencil" buttons after different paragraphs to edit inline, and report problems here


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:

- - -

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 or website from GitHub sudo apt-get install git git clone

Run locally cd infrapix python

Open browser to url to test the web app!

test images for command-line utility


resultant images from command-line utility


Public Lab is open for anyone and will always be free. By signing up you'll join a diverse group of community researchers and tap into a lot of grassroots expertise.

Sign up