Welcome to the pyGeoNet wiki!
This page will document the test cases how to use GRASS GIS and pygeonet together.
There are three main files to be used to run pygeonet
import pygeonet_defaults as defaults
import pygeonet_prepare as Parameters
pygeonet_processing
is the main file that calls the defaults and Parameters.
Prerequisites for pyGeoNet
Download GRASS GIS:
This version of the pygeonet is tested on WinGRASS-7.0.0svn-r61281-1030-Setup (64 bit) Upon installation of the GRASS GIS we need to set up some environment variables to call GRASS GIS modules outside GRASS environment.
Not sure if we will need all of them, but you can try all the combinations below.
GISBASE C:\GRASSGIS7SVN
GISRC C:\Users\Harish\Documents\.grass7
GRASS_SH C:\GRASSGIS7SVN\mysys\bin\sh.exe
LD_LIBRARY_PATH C:\GRASSGIS7SVN\lib
PYTHON_INCLUDE C:\Python27\include
PYTHON_LIB C:\Python27\libs\Python27.lib
PYTHONLIB C:\GRASSGIS7SVN\Python27
PYTHONPATH C:\GRASSGIS7SVN\etc\python
The .grass7 file should be as below:
GISDBASE: C:\Users\Harish\Documents\grassdata
LOCATION_NAME: geonet
MAPSET: geonetuser
GRASS_DB_ENCODING: ascii
Dependencies
Like many open-source programs, pyGeoNet depends on the work of many others in the form of libraries and uses those libraries to achieve the goal. Please install the below libraries before running the pygeonet_processing.py file
Essential packages
I would recommend for windows user to download the below libraries from http://www.lfd.uci.edu/~gohlke/pythonlibs/ For scikit-skfmm I would recommend download the scikit-fmm and compile the library on your local machine.
Some of the required libraries for this software to work: 'argparse==1.2.1', 'backports.ssl-match-hostname==3.4.0.2', 'bottleneck==0.8.0', 'gdal==1.11.0', 'image==1.3.3', 'jinja2==2.7.3', 'markupsafe==0.23', 'matplotlib==1.3.1', 'numpy==1.8.2', 'pandas==0.14.1', 'patsy==0.3.0', 'pillow==2.6.1', 'pyparsing==2.0.2', 'pyreadline==2.0', 'python-dateutil==2.2', 'pytz==2014.4', 'pyzmq==14.3.1', 'qrcode==5.1', 'reportlab==3.1.8', 'scikit-fmm==0.0.5', 'scipy==0.14.0', 'six==1.7.3', 'statsmodels==0.5.0', 'stevedore==0.15', 'tornado==4.0.2'
Upon setting up the environment, start pygeonet_processing.py
Use execfile('pygeonet_processing.py')
---if running from python64bit windows command line