Re: [GRASS-dev] adding a flag to discard NULL values in mapalgebra aggregation functions

2012-06-21 Thread Glynn Clements
G. Allegri wrote: Following a thread I've opened on the grass-users list, I would like to suggest a proposal to add a flag, to the r.mapcalc command, to discrd NULL values when evaluating aggregation functions like max(), min(), mode(), etc. Looking into the code of, for example., the max()

Re: [GRASS-dev] adding a flag to discard NULL values in mapalgebra aggregation functions

2012-06-21 Thread G. Allegri
In 7.0, I've added nmin, nmax, nmedian and nmode functions which ignore nulls. Great Glynn! Thanks. giovannni -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org

[GRASS-dev] adding a flag to discard NULL values in mapalgebra aggregation functions

2012-06-20 Thread G. Allegri
Following a thread I've opened on the grass-users list, I would like to suggest a proposal to add a flag, to the r.mapcalc command, to discrd NULL values when evaluating aggregation functions like max(), min(), mode(), etc. Looking into the code of, for example., the max() function [1], it seems

Re: [GRASS-dev] adding a flag to discard NULL values in mapalgebra aggregation functions

2012-06-20 Thread Margherita Di Leo
Hi Giovanni, all, On Wed, Jun 20, 2012 at 12:17 PM, G. Allegri gioha...@gmail.com wrote: Following a thread I've opened on the grass-users list, I would like to suggest a proposal to add a flag, to the r.mapcalc command, to discrd NULL values when evaluating aggregation functions like max(),

Re: [GRASS-dev] adding a flag to discard NULL values in mapalgebra aggregation functions

2012-06-20 Thread G. Allegri
Shouldn't it be the default behavior? I supposed it too, but it isn't ;) giovanni ciao madi This would let us do filtering (with row/columns offsets) as it is done in r.neighbors, where the NULL values are directly discarded. giovanni [1]