Tristan Nunez wrote:

> I'm a new GRASS user, and need to calculate the percentile rank of a
> cell within a moving window. Specifically, from a raster of wildlife
> habitat quality (ranked from 1 to 100) at 100m resolution, I would
> like to find the percentile rank of each focal cell relative to all of
> its neighboring cells within 20km of the focal cell - with an analysis
> extent of the western United States.
> 
> It looks like r.neighbors calculates other moving window statistics
> (but not percentile rank), and r.univar calculates percentile rank. Is
> there a module that does both, or a way to make r.univar calculate
> percentile rank within a moving window? Would there be a relatively
> simple way to script this?

Recent version of r.neighbors can calculate arbitrary quantiles with

        r.neighbors method=quantile quantile=...

-- 
Glynn Clements <[email protected]>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to