[GRASS-user] Returning values to Python

Kevin Williams zs1kwa at gmail.com
Wed Oct 29 02:11:04 PDT 2014


Firstly I apologize if this is a duplicate, but I am not getting my
own posts emailed to me, and I don't see them in the list archive, so
I am using another email account.

How does one return attribute values from a call to the 'r.what'
module running in a python script?

When this query executes, it prints the result to the terminal, but I
need to get the value back in the script.

One of the documentation pages mentioned a function "stdout2dict" from
"grass.pygrass.modules", but it does not look like this is in the
pygrass package any longer?

Many thanks, Kevin

More information about the grass-user mailing list