[GRASS-dev] r.univar: allow multiple rasters to be processed

Glynn Clements glynn at gclements.plus.com
Mon Feb 25 01:07:14 EST 2008


Ivan Shmakov wrote:

> >>>>> 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).
> 
> 	Is it due to the memory allocation issues, or?

I don't know. 30m cells * 8 bytes per cell = ~240MiB. The system has
1GiB of swap, so malloc() shouldn't fail.

> 	Anyway, I guess I may commit my patch?  I believe that the other
> 	issues you've mentioned should be resolved by separate
> 	changesets.  (And I joyfully commit the ``double'' cast patch
> 	personally.)

Agreed.

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


More information about the grass-dev mailing list