NOTE: Updated versions of these tools have been developed, with imporoved processes and a GUI. This code maintained for reference - please contact me for info until I get a tutorial online (coming soon!)
Various tools related to the resource assesment of baobabs in Zimbabwe.
To install dependancies in Ubuntu: sudo apt-get install qgis python-pygame python-sklearn python-imaging
Tools:
-
download_shapefile.py - downloads images from Google's static maps server for each point in a shapefile. Usage: python download_shapefile.py "path/to/shapefile"
-
geo_convert.py - methods used in other programs, not intended to be used on its own
-
shapefile.py - library for reading shapefiles (not my code - see http://code.google.com/p/pyshp/)
-
review.py - go through the images aquired with download_shapefile.py, click to tag a baobab, right click for unsure. Usage: python review2.0.py "/path/to/images" "shapefile_name_to_save_as" e.g. python review2.0.py 'sample data/*.png' 'test_review'
-
rforest.py - build a model based on one shapefile, make a prediction for each point in a different shapefile and save this prediction to a new shapefile. Edit the various paths in the program then run with 'python rforest.py'