[GRASSLIST:5985] Re: problem with r.in.ascii
H Bowman
hamish_nospam at yahoo.com
Wed Apr 9 06:47:41 EDT 2003
Problem is, r.in.ascii doesn't take x,y,z as input. It takes blocks of
numbers.
For x,y,z data, use s.in.ascii and s.to.rast and see how it goes.
Alternatively, get good with Matlab/Octave and convert in into the form
r.in.ascii does like:
EXAMPLE (from the man page)
The following is a sample input file to r.in.ascii:
north: 4299000.00
south: 4247000.00
east: 528000.00
west: 500000.00
rows: 10
cols: 15
null: -9999
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
> Ok - now I revise my question, the output is x,y,z and the grid
> spacing (20x20m) is of lower resolution than the location (1x1m).
> How do I create a raster layer from this data? Does anyone have
> any quick suggestions or scripts to get the data into the right
> format?
>
> The grid is 500 rows x 500 columbs
[...]
> Here is a sample header from the file
>
> south: 4179541
> east: 567376
> west: 566376
> rows: 2500
> cols: 3
>
> 566376.00000 4179541.00000 0.02640
> 566396.00000 4179541.00000 0.02788
> 566416.00000 4179541.00000 0.02962
More information about the grass-user
mailing list