On Fri, Nov 5, 2010 at 1:35 AM, melolp <[email protected]> wrote:
>
> Hi all,
>
> I need some help since I'm new using GRASS functions through python.
>
> I'm trying to use the function r.profile.
>
> My code:
>
> from grass.script import raster as grass
>
> os.chdir('F:\GEOSTORM\Python scripts')
>
> grass.run_command("r.profile",-g,input= teste1,output = teste, [12244.256
> -295112.597,12128.012 -295293.77])
>
> However I'm having the following error mesage:
>
> "non-keyword arg after keyword arg grass.run_command"

I think that you need something like this (untested):

    grass.run_command("r.profile", flags = "g" , input = teste1, output = teste,
                     profile = "12244.256,-295112.597,12128.012,-295293.77")

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

Reply via email to