[GRASS-user] Calculate raster statistics for each polygon
katrin eggert
katrineggert1980 at gmail.com
Fri Aug 6 04:22:10 EDT 2010
Hi
Thanks Martin but It's not working. With the following command
v.rast.stats -c -e --verbose vector=seg1 at PERMANENT
raster=SEG.1 at PERMANENTcolprefix=stat
I'm getting this error:
Adding columns ' stat_n INTEGER, stat_min DOUBLE PRECISION, stat_max DOUBLE
PRECISION, stat_range DOUBLE PRECISION, stat_mean DOUBLE PRECISION,
stat_stdde DOUBLE PRECISION, stat_varia DOUBLE PRECISION, stat_cf_va DOUBLE
PRECISION, stat_sum DOUBLE PRECISION, stat_first DOUBLE PRECISION,
stat_media DOUBLE PRECISION, stat_third DOUBLE PRECISION, stat_per90 DOUBLE
PRECISION'
C:/GRASS6/scripts/v.rast.stats: line 268: v.db.addcol:
command not found
ERROR: Cannot continue (problem adding columns).
Why am I getting this? Or, what I have to do before I run v.rast.stat?
Thanks
Kat
2010/8/5 Martin Wegmann <martin.wegmann at uni-wuerzburg.de>
> Hello,
>
> I think v.rast.stats is what you are looking for
>
> http://grass.itc.it/gdp/html_grass64/v.rast.stats.html
>
> regards, Martin
>
> On Donnerstag, 5. August 2010 18:25:37 katrin eggert wrote:
> > Hello
> >
> > I have polygon layer which divides my image into several areas all
> > contiguous. With the same size, I have a raster image. I want to:
> >
> > - calculate the most frequent value of the raster inside each polygon;
> >
> > - the maximum and minimum value inside each polygon
> >
> > How can this be done in GRASS?
> >
> >
> > Thanks
> >
> > Katrin
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20100806/8a7e329d/attachment.html
More information about the grass-user
mailing list