[GRASS-dev] [GRASS GIS] #3197: Memory limit issues with r.univar (when used within i.segment.stats)
GRASS GIS
trac at osgeo.org
Fri Nov 4 01:25:06 PDT 2016
#3197: Memory limit issues with r.univar (when used within i.segment.stats)
----------------------+-------------------------
Reporter: jpduffy | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.6
Component: Default | Version: 7.0.4
Resolution: | Keywords:
CPU: x86-32 | Platform: Linux
----------------------+-------------------------
Comment (by zarch):
Replying to [ticket:3197 jpduffy]:
> I get the following error:
>
> {{{
> Calculating geometry statistics
> Calculating statistics for raster gp_ortho.1 at gp1
> ERROR: G_realloc: unable to allocate 572000 bytes of memory at
> [...]
> }}}
I had the same problem when I was working OBIA some years ago and I wrote
r.univar2 that it is available as grass-addons.
r.univa2 extract some general statistics from raster using the zones
(consume much less memory than r.univar, and compute more general
statistics like:skewness, kurtosis, and mode. It is available here:
https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.univar2
It was not backported to trunk because it was used only by me and not
tested enough (imho), and If I remember correctly is working only with
zones.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3197#comment:2>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list