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? Cheers, Gareth On Mon, May 23, 2016 at 12:47 PM, Blumentrath, Stefan < stefan.blumentr...@nina.no> wrote: > Hei, > > > > Maybe the issue is missing commas? > > > > r.shade(shade=aspect, color=elevation, output=elevation_aspect_shaded) > > > > Cheers > > Stefan > > > > *From:* grass-user [mailto:grass-user-boun...@lists.osgeo.org] *On Behalf > Of *Gareth Grewcock > *Sent:* 23. mai 2016 11:49 > *To:* grass-user@lists.osgeo.org > *Subject:* [GRASS-user] r.shade python issues > > > > Hi – I’m having issues with r.shade module in grass 7.0.3 when trying to > interact with data via python. > > > > r.shade runs absolutely fine through the UI, however, when I run the > syntax through the python console, I get a syntax error. > > > > I have tried a variety of different datasets and syntax but it keeps > coming back with the syntax error, I went back to manual for the basics but > I still get the following: > > > > *r.shade shade=aspect color=elevation output=elevation_aspect_shaded* > > * File "<input>", line 1* > > * r.shade(shade=aspect color=elevation output=elevation_aspect_shaded)* > > * ^* > > *SyntaxError: invalid syntax* > > > > Other modules (r.in.gdal, r.relief, r.slope.aspect, g.region etc) all run > fine through python, I am only having issues with r.shade. > > > > Does anybody have any idea what might be going wrong? > > > > Cheers, > > Gareth > > >
_______________________________________________ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user