On Sun, Feb 22, 2015 at 8:36 AM, RichardCooper <[email protected]> wrote: > I've resolved - I hadn't set g.region aligning to the raster prior to > v.to.rast:
g.region -a res=0.22 does not align the region to the raster, but to the resolution. This is an important difference reflected in the results Markus M > > This appears to work,with outputs from r.univar matching v.rast.stats: > > g.region -p -a raster=cahpa_i0apr_05216_nc_remapped_nc_1@prcp05216ijk > res=0.22 > g.region -p align=cahpa_i0apr_05216_nc_remapped_nc_1@prcp05216ijk > v.to.rast --overwrite input=BMR_bndry_epsg4326@prcp05216ijk type=area > output=BMR_bndry_epsg4326_rasterized use=cat > r.univar -g -t map=cahpa_i0apr_05216_nc_remapped_nc_1@prcp05216ijk > zones=BMR_bndry_epsg4326_rasterized@prcp05216ijk > > v.rast.stats map=BMR_bndry_epsg4326@prcp05216ijk > raster=cahpa_i0apr_05216_nc_remapped_nc_1@prcp05216ijk column_prefix=test > method=number,minimum,maximum,range,average,sum > > > > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Searching-for-technical-details-on-how-v-rast-stats-calculates-means-and-other-statistics-tp5188809p5189189.html > Sent from the Grass - Users mailing list archive at Nabble.com. > _______________________________________________ > grass-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-user _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
