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

Rich Shepard rshepard at appl-ecosys.com
Fri Jan 26 11:12:14 PST 2018


On Fri, 26 Jan 2018, Nikos Alexandris wrote:

> 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)?

Nikos,

   By definition the median value has as many observations/measurements less
than this value as greater than this value. Because floating point numbers
are not represented exactly in computers (unless you extend them out to
several dozen digits to the right of the decimal point), I suggest you
create a map with integer values that will work for your application.

   You can find cells with values greater than some number, and less than
some number but you'll have a difficult time finding that number and getting
grass (or any application) to recognize it.

HTH,

Rich


More information about the grass-user mailing list