I'm running GRASS6.4RC6 in Windows with a 2-week old Binary (we are only using Windows here).<div>With that exact command I got:</div><div><div>C:/GRASS6/scripts/v.rast.stats: line 268: v.db.addcol:</div><div>command not found</div>
<div>ERROR: Cannot continue (problem adding columns).</div><div><br></div><div>Is this a common/expected problem in Windows? if yes, how can I perform this analysis without using v.rast.stats?</div><div>Thanks</div><div>Kat</div>
<br><div class="gmail_quote">2010/8/6 Martin Wegmann <span dir="ltr"><<a href="mailto:martin.wegmann@uni-wuerzburg.de">martin.wegmann@uni-wuerzburg.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
which GRASS version are you using and on which plattform?<br>
<br>
I did it with GRASS 6.4.0RC6 on Linux using the example GRASS dataset and it<br>
worked without problems:<br>
<br>
v.rast.stats -e vector=geology@PERMANENT layer=1 raster=elevation@PERMANENT<br>
colprefix=new_ percentile=90<br>
<br>
and the new attribute table when querying the vector file looks like this:<br>
cat : 270<br>
onemap_pro : 333074592<br>
PERIMETER : 191354.515625<br>
GEOL250_ : 271<br>
GEOL250_ID : 270<br>
GEO_NAME : CZig<br>
SHAPE_area : 333074608.99<br>
SHAPE_len : 191354.519722<br>
new__n : 24<br>
new__min : 106.708168<br>
new__max : 108.974335<br>
new__range : 2.266167<br>
new__mean : 107.466569<br>
new__stdde : 0.653831<br>
new__varia : 0.427495<br>
new__cf_va : 0.608404<br>
new__sum : 2579.197662<br>
new__first : 106.772<br>
new__media : 107.506<br>
new__third : 107.803<br>
new__per90 : 108.416<br>
<br>
regards, Martin<br>
<div class="im"><br>
<br>
On Freitag, 6. August 2010 10:22:10 katrin eggert wrote:<br>
> Hi<br>
> Thanks Martin but It's not working. With the following command<br>
> v.rast.stats -c -e --verbose vector=seg1@PERMANENT<br>
</div>> raster=SEG.1@PERMANENTcolprefix=stat<br>
<div><div></div><div class="h5">><br>
> I'm getting this error:<br>
> Adding columns ' stat_n INTEGER, stat_min DOUBLE PRECISION, stat_max DOUBLE<br>
> PRECISION, stat_range DOUBLE PRECISION, stat_mean DOUBLE PRECISION,<br>
> stat_stdde DOUBLE PRECISION, stat_varia DOUBLE PRECISION, stat_cf_va DOUBLE<br>
> PRECISION, stat_sum DOUBLE PRECISION, stat_first DOUBLE PRECISION,<br>
> stat_media DOUBLE PRECISION, stat_third DOUBLE PRECISION, stat_per90 DOUBLE<br>
> PRECISION'<br>
> C:/GRASS6/scripts/v.rast.stats: line 268: v.db.addcol:<br>
> command not found<br>
> ERROR: Cannot continue (problem adding columns).<br>
><br>
> Why am I getting this? Or, what I have to do before I run v.rast.stat?<br>
> Thanks<br>
> Kat<br>
><br>
><br>
><br>
> 2010/8/5 Martin Wegmann <<a href="mailto:martin.wegmann@uni-wuerzburg.de">martin.wegmann@uni-wuerzburg.de</a>><br>
><br>
> > Hello,<br>
> ><br>
> > I think v.rast.stats is what you are looking for<br>
> ><br>
> > <a href="http://grass.itc.it/gdp/html_grass64/v.rast.stats.html" target="_blank">http://grass.itc.it/gdp/html_grass64/v.rast.stats.html</a><br>
> ><br>
> > regards, Martin<br>
> ><br>
> > On Donnerstag, 5. August 2010 18:25:37 katrin eggert wrote:<br>
> > > Hello<br>
> > ><br>
> > > I have polygon layer which divides my image into several areas all<br>
> > > contiguous. With the same size, I have a raster image. I want to:<br>
> > ><br>
> > > - calculate the most frequent value of the raster inside each polygon;<br>
> > ><br>
> > > - the maximum and minimum value inside each polygon<br>
> > ><br>
> > > How can this be done in GRASS?<br>
> > ><br>
> > ><br>
> > > Thanks<br>
> > ><br>
> > > Katrin<br>
<br>
</div></div></blockquote></div><br></div>