[GRASS-dev] GRASS 7 r.neighbours average method giving incorrect value

Allar Haav allar.haav at gmail.com
Thu Jul 11 04:41:08 PDT 2013


Right, explanation makes sense.
Also, thanks for the quick fix. Much appreciated!

Allar

On 11/07/2013 12:30, Glynn Clements wrote:
> When the output is an integer map, the result of the average, variance
> and stddev methods is supposed to be rounded to the nearest integer
> (rather than towards zero), so 0.5 is added prior to truncation.
>
> r54820 removed the option to generate integer output maps, so the
> "is the output map integer" check became redundant. But rather than
> changing it to never adding 0.5, now it's always added.
>
> This should be fixed by r57064.
>



More information about the grass-dev mailing list