Re: [GRASS-user] syntax for grass.run_command("v.rast.stat")

2015-10-24 Thread Grazia Zulian
A Sorry I forgot the 's' Sorry thanks Inviato da iPhone > Il giorno 24/ott/2015, alle ore 10:53, Helmut Kudrnovsky ha > scritto: > > Grazia Zulian wrote >> Hi Anna >> It should add a new field to a vector with a statistic derived from a >> raster. >> It works manually. Not in the pytho scr

Re: [GRASS-user] syntax for grass.run_command("v.rast.stat")

2015-10-24 Thread Helmut Kudrnovsky
Grazia Zulian wrote > Hi Anna > It should add a new field to a vector with a statistic derived from a > raster. > It works manually. Not in the pytho scrip. Is the syntax correct? > > Inviato da iPhone > >> Il giorno 23/ott/2015, alle ore 19:07, Anna Petrášová < > kratochanna@ > > ha scritto:

Re: [GRASS-user] syntax for grass.run_command("v.rast.stat")

2015-10-23 Thread Grazia Zulian
Hi Anna It should add a new field to a vector with a statistic derived from a raster. It works manually. Not in the pytho scrip. Is the syntax correct? Inviato da iPhone > Il giorno 23/ott/2015, alle ore 19:07, Anna Petrášová > ha scritto: > > > >> On Fri, Oct 23, 2015 at 10:31 AM, Gra wro

Re: [GRASS-user] syntax for grass.run_command("v.rast.stat")

2015-10-23 Thread Anna Petrášová
On Fri, Oct 23, 2015 at 10:31 AM, Gra wrote: > I'm using > > v.rast.stat in a python code > > it's v.rast.stats and use map instead of vector, please see manual page: https://grass.osgeo.org/grass70/manuals/v.rast.stats.html > > > grass.run_command("v.rast.stat", vector = vect+"_"+suffix +'_300'

Re: [GRASS-user] syntax for grass.run_command("v.rast.stat")

2015-10-23 Thread Markus Neteler
On Oct 23, 2015 4:31 PM, "Gra" wrote: > > I'm using > > v.rast.stat in a python code > > > > grass.run_command("v.rast.stat", vector = vect+"_"+suffix +'_300', raster= "r_main_roads_dist" + suffix, colprefix I'm on mobile and cannot check but colprefix seems to be an abbreviation. Not sure if the

Re: [GRASS-user] syntax for grass.run_command("v.rast.stat")

2015-10-23 Thread Moritz Lennert
On 23/10/15 16:31, Gra wrote: I'm using v.rast.stat in a python code grass.run_command("v.rast.stat", vector = vect+"_"+suffix +'_300', raster= "r_main_roads_dist" + suffix, colprefix="AVG_mainroads", method="average") apparently it doens't like my syntax Do you get an error message ? Mor

[GRASS-user] syntax for grass.run_command("v.rast.stat")

2015-10-23 Thread Gra
I'm using v.rast.stat in a python code grass.run_command("v.rast.stat", vector = vect+"_"+suffix +'_300', raster= "r_main_roads_dist" + suffix, colprefix="AVG_mainroads", method="average") apparently it doens't like my syntax ideas? thanks ___ gras