Determining average value

James Darrell McCauley mccauley at ecn.purdue.edu
Mon Oct 10 13:12:32 EDT 1994


N R A   (nra at cix.compulink.co.uk ) writes on 10 Oct 94:

>Is there a simple program available that will allow me to determine the 
>average value for a raster data set. 

r.stats -q1 soils.ph | awk 'BEGIN{sum=0}{sum+=$1}END{print sum/NR}'
3.25519

--Darrell



More information about the grass-user mailing list