Re: [GRASS-user] zonal statistics for multiple areas

2018-11-01 Thread Alessandro Sebastiani
I was trying with nested loops and it seems not to be working. Now I tried again (more carefully i have to say) and it worked! Thanks to everybody! Il giorno mer 31 ott 2018 alle ore 21:55 Micha Silver ha scritto: > > On 10/31/18 11:59 AM, Alessandro Sebastiani wrote: > > Dear all, i was able

Re: [GRASS-user] zonal statistics for multiple areas

2018-10-31 Thread Micha Silver
On 10/31/18 11:59 AM, Alessandro Sebastiani wrote: Dear all, i was able to compute zonal statistics for multiple areas using this script. I used > import grass.script as gscript > v_list = gscript.read_command("g.list" , type = "vect").strip().split("\n") # i have 5 vectors in my list >

Re: [GRASS-user] zonal statistics for multiple areas

2018-10-31 Thread Alessandro Sebastiani
Dear all, i was able to compute zonal statistics for multiple areas using this script. I used > import grass.script as gscript > v_list = gscript.read_command("g.list" , type = "vect").strip().split("\n") # i have 5 vectors in my list > method = ("sum" , "average") > for v in v_list: >

Re: [GRASS-user] zonal statistics for multiple areas

2018-10-30 Thread Alessandro Sebastiani
Thanks a lot for your help! Il giorno mar 30 ott 2018 alle ore 11:49 Nikos Alexandris < n...@nikosalexandris.net> ha scritto: > * Alessandro Sebastiani [2018-10-29 > 21:32:51 +0100]: > > >thank you all for your suggestions. > >Dear Nikos, I have some 0-1 rasters that represents presence-absence

Re: [GRASS-user] zonal statistics for multiple areas

2018-10-30 Thread Nikos Alexandris
* Alessandro Sebastiani [2018-10-29 21:32:51 +0100]: thank you all for your suggestions. Dear Nikos, I have some 0-1 rasters that represents presence-absence of different land covers. Each raster's resolution is 10x10m, thus i want to compute the sum in order to obtain the surface covered by

Re: [GRASS-user] zonal statistics for multiple areas

2018-10-29 Thread Nikos Alexandris
Resending, as I forgot to Cc the list. * Alessandro Sebastiani [2018-10-29 16:05:54 +0100]: Hello to everybody,o Hello Alessandro, I hope my question is appropriate for this mail list. I have created 5 different buffer layers (d=100,200,300,400,500 m) from a point vector. Now i want to

Re: [GRASS-user] zonal statistics for multiple areas

2018-10-29 Thread Alessandro Sebastiani
duction to GRASS and Python [3]. > > > > Cheers > > Stefan > > > > 1: https://grass.osgeo.org/grass74/manuals/addons/v.rast.bufferstats.html > > 2: https://grass.osgeo.org/grass76/manuals/v.rast.stats.html > > 3: https://grasswiki.osgeo.org/wiki/GRASS_and_Python >

Re: [GRASS-user] zonal statistics for multiple areas

2018-10-29 Thread Micha Silver
half Of Alessandro Sebastiani Sent: mandag 29. oktober 2018 16:06 To: grass-user@lists.osgeo.org Subject: [GRASS-user] zonal statistics for multiple areas   Hello to everybody, I hope my question is approp

Re: [GRASS-user] zonal statistics for multiple areas

2018-10-29 Thread Stefan Blumentrath
. oktober 2018 16:06 To: grass-user@lists.osgeo.org Subject: [GRASS-user] zonal statistics for multiple areas Hello to everybody, I hope my question is appropriate for this mail list. I have created 5 different buffer layers (d=100,200,300,400,500 m) from a point vector. Now i want to compute

[GRASS-user] zonal statistics for multiple areas

2018-10-29 Thread Alessandro Sebastiani
Hello to everybody, I hope my question is appropriate for this mail list. I have created 5 different buffer layers (d=100,200,300,400,500 m) from a point vector. Now i want to compute some zonal statistics using different rasters as input. I know how to do that separately, but i was wondering how