[GRASS-user] exported raster seems to be different from source

Glynn Clements glynn at gclements.plus.com
Mon Oct 16 04:03:33 EDT 2006


mrigotti at agrsci.unibo.it wrote:

> I produced a raster map, using grass63-cvs,at a 5m resolution. Cell values were
> floating. Then I exported it using r.out.ascii (setting dp=4), and imported it
> on another machine, where grass61-cvs is installed, using r.in.ascii.
> 
> I run r.univar, and the output was quite different. Here they are:
> 
> 1st result, from grass63-cvs
> total null and non-null cells: 1002834
> total null cells: 659566
> 
> Of the non-null cells:
> ----------------------
> n: 343268
> minimum: 0
> maximum: 21.363
> range: 21.363
> mean: 0.121939
> standard deviation: 0.446553
> variance: 0.19941
> variation coefficient: 366.209 %
> sum: 41857.8619999509
> 
> 2nd result, from grass61-cvs
> total null and non-null cells: 994875
> total null cells: 650910
> 
> Of the non-null cells:
> ----------------------
> n: 343965
> minimum: 0
> maximum: 21.3627
> range: 21.3627
> mean: 0.121839
> standard deviation: 0.44615
> variance: 0.19905
> variation coefficient: 366.181 %
> sum: 41908.3203069364
> 
> I understand there might be a difference because of the dp value, which was
> different for the two rasters, but I can't understand why the number of cells
> is different, when the raster should be the same.
> Is it a bug, or just my poor knowledge of GIS systems? Can anyone help?

Can you provide the output from r.info for both maps, the output from
"g.region -p" on both systems, and the header at the top of the ASCII
data?

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list