[GRASS-dev] Re: [GRASS-user] r.neighbour and r.mask

Glynn Clements glynn at gclements.plus.com
Thu Jul 9 14:34:15 EDT 2009


Milton Cezar Ribeiro wrote:

> In fact, I think that for many r.*, if a "skip if is null" flag could be
> setted, may be we can save a lot of time, mainly when running repetitive
> steps on large (60,000x48,000 pixels) maps are ran. And, on my case,
> addictionally the large size of the maps, as I work with multi-scale
> landscape index computing (percentage of cover, density of edge with
> different width, connectivity, number of patches), I need to run moving
> windows with large sizes (like 101x101 pixels). So, if when I set a
> skip_null=T (on my own risk!), I can save not only hours, but weeks of work.

This could be implemented by giving r.neighbors a mask= parameter, or
maybe we need an OUTMASK for output maps. This could be applied
automatically by the raster library to ensure consistency, but
potentially-slow modules could perform the check explicitly as an
optimisation.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list