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

Hamish hamish_b at yahoo.com
Thu Aug 20 06:25:50 EDT 2009


> > 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...


Hamish



      



More information about the grass-dev mailing list