Re: Alternative to r.median for GRASS 7.x?

Rich Shepard <[email protected]>
Newsgroups gmane.comp.gis.grass.user
Message-ID <[email protected]>
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
_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.