[GRASS-user] g7 svn58117 r.random ERROR: There aren't [n] non-NULL cells in the current region
Hamish
hamish_b at yahoo.com
Mon Oct 28 12:01:43 PDT 2013
Eric wrote:
>> rows: 64019
>> cols: 65916
>> cells: 4219876404
64019 * 65916 > signed 32bit integer so it overflows
is your system+grass 32 or 64 bit?
> Cell Count: -75090892
> Null Cells: 2130552315
>
> A negative cell count? hmmm....
that may just be a cosmetic issue in the printf'ing of the variables.
the first thing I'd try is to go to line 124 in main.c and (1) remove
the two casts to (int), then (2) change the two %d to %ld.
(nCells and nNulls are defined as "long" in local_proto.h)
Hamish
More information about the grass-user
mailing list