[GRASS-user] v.rast.stats ERROR
Diana Brito
dianisbrito2 at gmail.com
Fri Oct 14 11:19:37 PDT 2016
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"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20161014/d056ffb5/attachment.html>
More information about the grass-user
mailing list