HI LIST!
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:
contador=1
for map in g.list rast pat=MOD13*A2010*NDVI
do
v.rast.stats -c map=buffer_xime4 raster=$map column_prefix=$contador method=average
let contador=contador+1
done
But grass (GRASS GIS 7.0.4) returns this error.
…
…
RROR: Error mientras se ejecutaba: ‘ALTER TABLE buffer_xime4 ADD COLUMN
1_average DOUBLE PRECISION’
ERROR: Unable to add column <1_average DOUBLE PRECISION>.
ERROR: Adding columns failed. Exiting.
Preprocessing input data…
DBMI-SQLite Error del manejador:
Error en sqlite3_prepare():
unrecognized token: “2_average”
DBMI-SQLite Error del manejador:
Error en sqlite3_prepare():
unrecognized token: “2_average”
RROR: Error mientras se ejecutaba: ‘ALTER TABLE buffer_xime4 ADD COLUMN
1_average DOUBLE PRECISION’
ERROR: Unable to add column <1_average DOUBLE PRECISION>.
ERROR: Adding columns failed. Exiting.
Preprocessing input data…
DBMI-SQLite Error del manejador:
Error en sqlite3_prepare():
unrecognized token: “2_average”
DBMI-SQLite Error del manejador:
Error en sqlite3_prepare():
unrecognized token: “2_average”
…
…
…
Could you please tell me what im doing wrong?
thanks in advance.
···
Diana Marcela Brito Hoyos
Bióloga
"El bosque sería muy triste si solo cantaran los pájaros que mejor lo hacen"