[GRASS-user] Alternative to r.median for GRASS 7.x?

Nikos Alexandris nik at nikosalexandris.net
Fri Jan 26 10:51:57 PST 2018


Dear statistics experts,

how can we compute the median of a floating point cover raster map, over
a base map (using the conventional terminology as in r.stats.zonal)?

It appears that there is no module to get the median out of floating
point raster maps, using a base map as in r.stats.zonal or r.statistics
(which does not support floating point figures).

Is there an alternative to r.median for GRASS 7.x?


A work around with r.statistics, is to use r.reclass and get the
floating point numbers (reported via r.stats -n1) as category labels of the
cover map. Yet, r.reclass rounds up floats before assigning a category.

At the moment the shortest path seems to be v.rast.stats. This would
require some conversions back and forth from raster to vector for the
base map though.

Thank you for any hints, Nikos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180126/f21dbbda/attachment.sig>


More information about the grass-user mailing list