[GRASS-user] grass python problem

ming han dustming at gmail.com
Mon Nov 16 20:03:42 PST 2020


Hi Everyone

    Hope this email finds you well.
    I can run r.cross in console with following command:
    "r.cross -z --overwrite --quiet input=Connect_Lake at PERMANENT
,str_grass_r at PERMANENT output=test"

    But I got error by run r.cross in python with following command:
    grass.run_command('r.cross', input = ['str_grass_r at PERMANENT
','Connect_Lake at PERMANENT'],output = 'test', quiet = True)

     What is the correct format to use r.cross function in Python? and how
to obtain the output table generated by r.cross?

Thanks
Ming
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20201116/e5be8048/attachment.html>


More information about the grass-user mailing list