[GRASS-user] r.in.xyz
Nikos Alexandris
nikos.alexandris at felis.uni-freiburg.de
Tue Mar 18 14:57:16 EDT 2008
Hi Edmondo!
I did a quick test based on these numbers
> > 232196.623264|4686029.38993|10.0000|
> > 237080.972225|4686560.03525|50.0000|
> > 236453.845939|4684943.97905|11.0000|
> > 233969.461035|4684208.31167|13.0000|
> > 233487.0562|4685559.04521|43.0000|
> > 234198.603332|4686596.21561|23.5000|
> > 235368.435059|4686198.23162|37.8900|
> > 233655.897892|4685559.04521|19.0000|
> > 234367.445025|4686752.99718|27.0000|
> > 236441.785818|4685583.16545|17.0000|
> > 235464.916026|4683484.70442|28.0000|
> > 237141.27283|4684328.91288|31.0000|
> > 233957.400914|4684256.55216|17.5000|
> > 234693.068289|4685028.39989|11.0000|
> > 235766.419048|4685908.78872|31.0000|
> > 236164.403038|4686560.03525|20.0000|
1. copy-paste in a file called "test" the above
2. cat test | cut -d"|" -f1,2,3 > test_xyz # to get rid of last |
3. The pointd should fall in the region so I needed to define a region
somehow.
cat test_xyz | sort -n | head -1
232196.623264|4686029.38993|10.0000
cat test_xyz | sort -n | tail -1
237141.27283|4684328.91288|31.0000
I used the above as north, south, west, east to define an xyz location
4. r.in.xyz in=test_xyz out=test_xyz # type is by default FCELL, fs is
set to "|" by default as well
Scanning data ...
Writing to map ...
100%
r.in.xyz complete. 6 points found in region.
5. r.stats -ng test_xyz
235747.78000909 4685895.13236842 31
236467.00168182 4685626.63710526 17
233500.21228182 4685537.13868421 43
233680.0177 4685537.13868421 19
234668.9475 4685000.14815789 11
236467.00168182 4684910.64973684 11
100%
Elevation values are imported.
Cheers,
Nikos
More information about the grass-user
mailing list