[STATSGRASS] Scripting R from outside of GRASS

William Hudspeth bhudspeth at edac.unm.edu
Mon Jan 24 17:06:53 EST 2005


Hello,

I am building an online GIS application using Minnesota MapServer that
references GRASS rasters in the map file. I have successfully displayed
GRASS rasters, and used python to script processing of GRASS raster
layers. I would also like to script the statistical analysis and display
of graphs using R, but am having trouble figuring out how to run R on my
GRASS location from outside of GRASS. I can't run R in the same script
that I use to process GRASS rasters. Can anyone help to guide me in how
I go about doing this. My current work flow is something like this:

python_script_file.py --> calls script.sh file to load a GRASS location
and process rasters

python_script_file.py  --> call another script.sh file to generate some
summary statistics and generate PNG graphs on the same GRASS location

Any help greatly appreciated.

Thanks, Bill




More information about the grass-stats mailing list