I have a raster map with continuous values, and need to extract some stats (like mean, std etc) assigning these “zonal” values as a vector column.
I just added the empty columns on the my vector map using :
v.db.addcol map=frag_ts columns=“FLOW_STD DOUBLE PRECISION”
I have a raster map with continuous values, and need to extract some stats (like mean, std etc) assigning these “zonal” values as a vector column.
I just added the empty columns on the my vector map using :
v.db.addcol map=frag_ts columns=“FLOW_STD DOUBLE PRECISION”
v.rast.stats (menu: Vector-Update area attribute from raster) will calculate n, min, max, range, mean, stddev, variance, coeff_var, sum and optionally the 1st quartile, median, 3rd quartile, and given percentile. Columns will be created on the fly, you only have to give the ‘base name’ of the columns. I.e., no need to create a column yourself.
v.rast.stats (menu: Vector-Update area attribute from raster) will calculate n, min, max, range, mean, stddev, variance, coeff_var, sum and optionally the 1st quartile, median, 3rd quartile, and given percentile. Columns will be created on the fly, you only have to give the ‘base name’ of the columns. I.e., no need to create a column yourself.
On 07/16/2011 10:14 PM, Milton Cezar Ribeiro wrote:
I have a raster map with continuous values, and need to extract some stats (like mean, std etc) assigning these “zonal” values as a vector column.
I just added the empty columns on the my vector map using :
v.db.addcol map=frag_ts columns=“FLOW_STD DOUBLE PRECISION”
How can I do this on grass?
cheers
milton
_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)