grass python problem

ming han <[email protected]> Mon, 16 Nov 2020 23:03:42 -0500
Newsgroups gmane.comp.gis.grass.devel,gmane.comp.gis.grass.user
Message-ID <CAD+uAWjhZN36n-ng2-pJVTMcysB-iubRLsCS9tuV3+xCqqspQg@mail.gmail.com>
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@PERMANENT
,str_grass_r@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@PERMANENT
','Connect_Lake@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

_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev