[GRASS5] rinascii & routascii

Eric G . Miller egm2 at jps.net
Sun Dec 17 17:50:45 EST 2000


On Sun, Dec 17, 2000 at 01:04:29PM -0700, William L. Baker wrote:
> Hello,
> 
> Here is the r.in.ascii displacement problem and the failure
> of the dp paramater in routascii.  There were no compile problems
> for either module on my machine (intel with Mandrake 7.2). I
> wonder why it fails on my machine but different on others...?
> 
> GRASS:/usr/local/grassedit > more rinascii.txt
> north:      4504755
> south:      4404275
> east:       351345
> west:       350985
> rows:       4
> cols:       3
> 0.0 1.0 0.0
> 1.0 1.0 1.0
> 0.0 1.0 1.0
> 0.0 0.0 1.0
> 
> GRASS:/usr/local/grassedit > r.in.ascii -f input=rinascii.txt output=test
> CREATING SUPPORT FILES FOR test

Put some non-zero digits after those decimal points.

> GRASS:/usr/local/grassedit > r.out.ascii map=test dp=7 |more
> north: 4504755
> south: 4504275
> east: 351345
> west: 350985
> rows: 4
> cols: 3
> 0 1 0
> 0 1 0
> 0 1 0
> 0 1 0

If all of the digits past the decimal point are zero, they get removed
in the ascii output (along with the decimal point).  This is a
"feature" I guess (there's a lib function that does this stripping).
It looks like your output is not the same as the input though (was there
something else done?). Note that the header for rinascii.txt should have
a different "south" -- the north south res there is 25120 instead of 120
(like E-W).

-- 
Eric G. Miller <egm2 at jps.net>

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list