<div dir="ltr">HI LIST!<div><br></div><div>I have a five years time serie of NDVI, and i need to obtain the average value of some polygons in a vector shape named "buffer_xime4", Im trying to use v.rast.stats into a for cicle as follows:</div><div><br></div><div><div>contador=1</div><div>for map in `g.list rast pat=MOD13*A2010*NDVI`</div><div>do</div><div>v.rast.stats -c map=buffer_xime4 raster=$map column_prefix=$contador method=average</div><div>let contador=contador+1</div><div>done </div></div><div><br></div><div>But grass (GRASS GIS 7.0.4) returns this error. </div><div><br></div><div>...................................................</div><div>....................................................</div><div><br></div><div><div>RROR: Error mientras se ejecutaba: 'ALTER TABLE buffer_xime4 ADD COLUMN</div><div> 1_average DOUBLE PRECISION'</div><div>ERROR: Unable to add column <1_average DOUBLE PRECISION>.</div><div>ERROR: Adding columns failed. Exiting.</div><div>Preprocessing input data...</div><div>DBMI-SQLite Error del manejador:</div><div>Error en sqlite3_prepare():</div><div>unrecognized token: "2_average"</div><div><br></div><div>DBMI-SQLite Error del manejador:</div><div>Error en sqlite3_prepare():</div><div>unrecognized token: "2_average"</div></div><div><div>RROR: Error mientras se ejecutaba: 'ALTER TABLE buffer_xime4 ADD COLUMN</div><div> 1_average DOUBLE PRECISION'</div><div>ERROR: Unable to add column <1_average DOUBLE PRECISION>.</div><div>ERROR: Adding columns failed. Exiting.</div><div>Preprocessing input data...</div><div>DBMI-SQLite Error del manejador:</div><div>Error en sqlite3_prepare():</div><div>unrecognized token: "2_average"</div><div><br></div><div>DBMI-SQLite Error del manejador:</div><div>Error en sqlite3_prepare():</div><div>unrecognized token: "2_average"</div></div><div>..................................</div><div>......................................</div><div>......................................</div><div><br></div><div>Could you please tell me what im doing wrong?</div><div><br></div><div>thanks in advance. </div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Diana Marcela Brito Hoyos<div>Bióloga</div><div><br></div><div><font size="1">"</font><i style="font-size:12.8px"><font size="1">El bosque sería muy triste si solo cantaran los pájaros que mejor lo hacen"</font></i></div></div></div></div></div>
</div></div>