[GRASS-user] r.shade python issues
Laurent C.
lrntct at gmail.com
Tue May 24 10:11:05 PDT 2016
2016-05-24 4:36 GMT-05:00 Gareth Grewcock <garethgrewcock at gmail.com>:
> Again - thanks for all the help so far, it is much appreciated.
>
> Laurent - I ran the read2_command and it returned the following:
>
> Traceback (most recent call last):
> File "<string>", line 254, in run_nodebug
> File "C:\Users\ggrewcock\Dropbox\PythonScripts\gmt\grass-interface-v2.py",
> line 85, in <module>
> grass.read2_command('r.shade',
> shade='hillshade_output_python',color='dem_slope',
> output='shaded_raster_hillshade_map', brighten='25', overwrite=True)
> AttributeError: 'module' object has no attribute 'read2_command'
You have to define the function yourself with the code from the wiki,
it is not part of the GRASS scripting library.
Laurent
More information about the grass-user
mailing list