[GRASS-user] r.shade python issues
Moritz Lennert
mlennert at club.worldonline.be
Mon May 23 10:26:41 PDT 2016
On 23/05/16 15:01, Gareth Grewcock wrote:
> Hi Stefan - thanks for getting back to me.
>
> I had tried that before but still got issues, this time returning:
> 'NameError: name 'r' is not defined'
>
> /r.shade(shade=aspect, color=elevation, output=elevation_aspect_shaded)/
> /Traceback (most recent call last):/
> / File "<input>", line 1, in <module>/
> /NameError: name 'r' is not defined/
> /
> /
> Any ideas what might be causing that?
If you are using pygrass, you have to create the r.shade module object
before using it. See [1].
If you are not using pygrass, please give us more information about what
happens in your script before the call that fails.
Moritz
[1] https://grass.osgeo.org/grass70/manuals/libpython/pygrass_modules.html
More information about the grass-user
mailing list