[GRASS-dev] r.univar -g: output total as well

Markus Neteler neteler at osgeo.org
Thu Aug 20 06:38:18 EDT 2009


On Thu, Aug 20, 2009 at 12:25 PM, Hamish<hamish_b at yahoo.com> wrote:
>> > r.univar -g terra_lst1km20030624.LST_Day_1km.rst
>> > n=5698
>> > null_cells=821198
>> > cells=826896
>
> does that %d (and n= and null_cells= above it) want to be %ld or something
> to be LFS-safe?
>
> fprintf(stdout, "cells=%d\n", stats->size);
>
> e.g. IIUC signed int overflows at a sqrt(2^31) = 46341 x 46341 rows x cols
> raster region size. Which people are getting closer to these days...


Right - I guess that the entire output of r.univar needs to be revised for that.

Markus


More information about the grass-dev mailing list