[GRASS-dev] Re: r.univar: allow multiple rasters to be processed
Ivan Shmakov
ivan at theory.asu.ru
Mon Mar 17 15:29:39 EDT 2008
>>>>> Glynn Clements <glynn at gclements.plus.com> writes:
>>>>> I tried running r.univar on the same map for comparison, but it
>>>>> crashed while trying to compute the percentile (the other
>>>>> statistics were computed okay).
[...]
>> qpos_perc[i] = (int) (stats->n * stats->perc[i] / 100. - 0.5);
[...]
>> Here, it should rather be, e. g.:
>> qpos_perc[i] = (int) (stats->n * 1e-2 * stats->perc[i] - 0.5);
> Right.
I've now committed the change:
http://trac.osgeo.org/grass/changeset/30605
[...]
More information about the grass-dev
mailing list