[GRASS5] rinascii & routascii
William L. Baker
BakerWL at uwyo.edu
Sun Dec 17 18:45:15 EST 2000
Hi Eric,
OK, maybe the stripping is all that's happening with
r.out.ascii. Actually, I think the north-south is 480/4 = 120
just as east-west is 360/3 = 120, so that's not a problem.
Maybe the only problem is with r.in.ascii which does not
bring the data in correctly with float or double. But, if
the data in the rinascii.txt file is made into integer and
then brought in with r.in.ascii then it comes in fine.
I'll try adding some non-zero digits and r.out.ascii again.
Seems that I got fooled by the "feature."
Bill B.
-----Original Message-----
From: Eric G . Miller [mailto:egm2 at jps.net]
Sent: Sunday, December 17, 2000 3:51 PM
To: 'grass5 at geog.uni-hannover.de'
Subject: Re: [GRASS5] rinascii & routascii
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'
----------------------------------------
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