[GRASS-user] g7 svn58117 r.random ERROR: There aren't [n] non-NULL cells in the current region

Eric Goddard egoddard1010 at gmail.com
Mon Oct 28 09:29:20 PDT 2013


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

A negative cell count? hmmm....


On Mon, Oct 28, 2013 at 11:07 AM, Eric Goddard <egoddard1010 at gmail.com>wrote:

> Hi all,
>
> I'm having a small issue generating random points across a map with GRASS
> 7 svn rev. 58117. When running r.random I get the following error:
>
> r.random land_cover_classification at PERMANENTvector_output=accuracy_assessment_random n=1000
> Collecting Stats...
> ERROR: There aren't [1000] non-NULL cells in the current region
> (Mon Oct 28 10:51:22 2013) Command finished (1 min 3 sec)
>
> My region is:
> g.region -p
>
> projection: 99 (Lambert Conformal Conic)
> zone:       0
> datum:      nad83
> ellipsoid:  grs80
> north:      448953.41346712
> south:      238997.2442541
> west:       673974.37382019
> east:       890151.92813758
> nsres:      3.27959152
> ewres:      3.27959152
> rows:       64019
> cols:       65916
> cells:      4219876404
>
> r.stats for the land cover map:
> r.stats -c input=land_cover_classification at PERMANENT
>
> 1 89740438
> 2 767001523
> 3 824629190
> 4 76402738
> 5 331550200
> * 2130552315
> (Mon Oct 28 10:57:07 2013) Command finished (1 min 11 sec)
>
> So, there are plenty of non-null cells in the region. Any input into what
> might be causing this error is much appreciated!
>
> Thanks,
> Eric
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20131028/a1c13ddb/attachment.html>


More information about the grass-user mailing list