[GRASS-dev] GRASS7 rasterlib broken?

Markus Neteler neteler at osgeo.org
Wed Jul 15 08:32:31 EDT 2009


On Wed, Jul 15, 2009 at 12:18 PM, Markus
Metz<markus.metz.giswork at googlemail.com> wrote:
> g.region rast=mymap
> r.mapcalc "mymap.copy = mymap"
>
> Displaying both maps or r.univar gives vastly different results.
> This corrupted output is not restricted to r.mapcalc but seems to be
> true for all raster modules.
>
> grass7 updated today, no changes in my local copy, two different
> independent systems.
>
> I know rasterlib in grass7 is work in progress, but I just wanted to
> mention it, also ask if someone else observed this problem.

I can confirm:

GRASS 7.0.svn (spearfish60):~/grass70 > g.region rast=elevation.dem

GRASS 7.0.svn (spearfish60):~/grass70 > r.mapcalc "new = elevation.dem"
 100%

GRASS 7.0.svn (spearfish60):~/grass70 > r.univar -g elevation.dem
n=292317
null_cells=2661
min=1066
max=1840
range=774
mean=1353.66931789804
mean_of_abs=1353.66931789804
stddev=177.040679835105
variance=31343.402316476
coeff_var=13.0785766874004
sum=395700554

GRASS 7.0.svn (spearfish60):~/grass70 > r.univar -g new
n=292317
null_cells=2661
min=0
max=255
range=255
mean=133.548757000106
mean_of_abs=133.548757000106
stddev=67.9064484591162
variance=4611.28574233061
coeff_var=50.8476828871288
sum=39038572

No good.


GRASS 7.0.svn (spearfish60):~/grass70 > r.mapcalc "new_fp = elevation.10m"
 100%

GRASS 7.0.svn (spearfish60):~/grass70 > r.univar -g elevation.10m
n=294978
null_cells=0
min=1061.116211
max=1845.375488
range=784.259277
mean=1348.37227305679
mean_of_abs=1348.37227305679
stddev=175.494048553447
variance=30798.1610776796
coeff_var=13.0152519493447
sum=397740156.3617459536

GRASS 7.0.svn (spearfish60):~/grass70 > r.univar -g new_fp
WARNING: Error reading map <new_fp@>, row 292
ERROR: Reading row 292

... even worse...

Markus


More information about the grass-dev mailing list