[GRASS-user] syntax for grass.run_command("v.rast.stat")
Grazia Zulian
graziaz at gmail.com
Fri Oct 23 23:05:24 PDT 2015
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 at gmail.com> ha scritto:
>
>
>
>> On Fri, Oct 23, 2015 at 10:31 AM, Gra <graziaz at gmail.com> 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', raster= "r_main_roads_dist" + suffix, colprefix="AVG_mainroads", method="average")
>>
>> apparently it doens't like my syntax
>>
>> ideas?
>>
>> thanks
>>
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20151024/e74fb3b4/attachment.html>
More information about the grass-user
mailing list