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)
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)
Some additional info: When I run r.random with the -i flag, I get the
following results:
r.random -i input=land_cover_classification@PERMANENT n=1000
vector_output=accuraccy_assessment_random
Collecting Stats...
Raster: land_cover_classification@PERMANENT
Cover: (null)
Cell Count: -75090892
Null Cells: 2130552315
Some additional info: When I run r.random with the -i flag, I get the
following results:
r.random -i input=land_cover_classification@PERMANENT n=1000
vector_output=accuraccy_assessment_random
Collecting Stats…
Raster: land_cover_classification@PERMANENT
Cover: (null)
Cell Count: -75090892
Null Cells: 2130552315