[GRASS-dev] GRASS python Script with Spgrass6 commands

Greetings
I’m planning on doing a script to do spatial data analysis automatically using a Python Script. This would mean, connecting to R, reading GRASS data into R and return data (similar to Chapter 10.2.1 from GRASS book).
My questions are:
1- Is there any Python’s GRASS Script doing this?
2- If not, How can I do this? I mean, is there any GRASS-python function that can be used to send commands to R?

Thank You

Luis

Luis Lisboa wrote:

I'm planning on doing a script to do spatial data analysis automatically
using a Python Script. This would mean, connecting to R, reading GRASS data
into R and return data (similar to Chapter 10.2.1 from GRASS book).
My questions are:

Hi Luis!

1- Is there any Python's GRASS Script doing this?

why don't you a look at v.krige (by Anne Ghisla). I think it goes all this way
grass -> R -> grass.

2- If not, How can I do this? I mean, is there any GRASS-python function
that can be used to send commands to R?

You are probably interested in the "grass-python-scripting" stuff found at:
<http://grass.osgeo.org/wiki/GRASS_and_Python&gt;

(
I myself have some scripts that I'd love to see them someday properly
implemented and do magic with R and grass ;-). But I guess it will take a
while...
)

Nikos

Nikos wrote:

I myself have some scripts that I'd love to see them
someday properly implemented and do magic with R and grass ;-).
But I guess it will take a while...

see also http://grass.osgeo.org/wiki/R_statistics

Hamish