[GRASS-user] Searching for technical details on how v.rast.stats calculates means and other statistics

RichardCooper richtcooper at hotmail.com
Sat Feb 21 23:36:58 PST 2015


I've resolved - I hadn't set g.region aligning to the raster prior to
v.to.rast:

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 at prcp05216ijk
res=0.22 
g.region -p align=cahpa_i0apr_05216_nc_remapped_nc_1 at prcp05216ijk
v.to.rast --overwrite input=BMR_bndry_epsg4326 at prcp05216ijk type=area
output=BMR_bndry_epsg4326_rasterized use=cat
r.univar -g -t map=cahpa_i0apr_05216_nc_remapped_nc_1 at prcp05216ijk
zones=BMR_bndry_epsg4326_rasterized at prcp05216ijk

v.rast.stats map=BMR_bndry_epsg4326 at prcp05216ijk
raster=cahpa_i0apr_05216_nc_remapped_nc_1 at 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.


More information about the grass-user mailing list