[GRASS-user] Get a mean value using raster and vector

Hi,

Platform - xp
GRASS Version - 6.4.0svn

I have a raster image of climate data and I have a vector file containing
some boundaries. Is it possible, using grass to get the mean values from the
raster using the boundaries of the vector file. I had a look at r.median but
it seemed that you needed to have two raster files for this.

Thank You
Ben
--
View this message in context: http://n2.nabble.com/Get-a-mean-value-using-raster-and-vector-tp3248355p3248355.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Ben wrote:

I have a raster image of climate data and I have a vector file containing
some boundaries. Is it possible, using grass to get the mean values from
the raster using the boundaries of the vector file. I had a look at
r.median but it seemed that you needed to have two raster files for
this.

if they are not already, convert boundaries to areas (ensure that they are
boundary type and have centroids), then use v.rast.stats.

Hamish