[GRASS-user] Re: Importing Dems with r.in.xyz
Hanlie Pretorius
hanlie.pretorius at gmail.com
Mon Jun 7 06:33:58 EDT 2010
2010/6/7, Hamish <hamish_b at yahoo.com>:
> Hanlie Pretorius wrote:
>> > I don't think it's this bug because this bug discards only one line of
>> > data. I don't get any data in because the number of coordinate pairs
>> > in the file is less than the number of cells in the defined region.
> Markus Metz:
>> Weird. In 6.4, r.in.xyz does import a file where the number of
>> coordinate pairs is far less than the number of cells in the defined
>> region. (I just did a simple test with two input lines and a region
>> with 26.5 million cells, got clean import and correct result)
>
>
> sorry, I'm not really grasping what the problem is. If you suspect
> there is something weird going on can you make the .xyz.bz2 file
> available for me to download, and supply the output of r.univar
> `wc -l` and `r.in.xyz --verbose`?
>
>
> Hamish
>
Ok, the text file (6.1MB compressed) that I use as input to r.in.xyz
is available at:
http://www.nedbib.za.net/dems/
Output of r.in.xyz --verbose:
-----
Reading data ...
Writing to map ...
r.in.xyz complete. 0 points found in region.
-----
Output of r.univar:
-----
total null and non-null cells: 1146474
total null cells: 1146474
Of the non-null cells:
----------------------
n: 0
minimum: -nan
maximum: -nan
range: -nan
mean: -nan
mean of absolute values: -nan
standard deviation: -nan
variance: -nan
variation coefficient: -nan %
sum: 0
-----
output of wc -l:
1146370
Output of r.info:
-----
+----------------------------------------------------------------------------+
| Layer: dem_2728ab_25m Date: Mon Jun 7 12:09:34 2010
| Mapset: PERMANENT Login of Creator: hanlie
| Location: sa_tm_29deg_E
| DataBase: /media/0847147784/grassdata
| Title: Raw x,y,z data binned into a raster grid by cell mean ( dem_2728
| Timestamp: none
|----------------------------------------------------------------------------
|
| Type of Map: raster Number of Categories: 255
| Data Type: FCELL
| Rows: 1011
| Columns: 1134
| Total Cells: 1146474
| Projection: Transverse Mercator
| N: -49312.5 S: -74587.5 Res: 25
| E: -2987512.5 W: -3015862.5 Res: 25
| Range of data: min = -nan max = -nan
|
| Data Source:
| /media/0847147784/data/CD-NGI/DEMS/25m dems/2728/ab/2728AB.ort.grass
|
|
| Data Description:
| generated by r.in.xyz
|
| Comments:
| r.in.xyz input="/media/0847147784/data/CD-NGI/DEMS/25m dems/2728/ab/\
| 2728AB.ort.grass" output="dem_2728ab_25m" method="mean" type="FCELL"\
| x=1 y=2 z=3 zscale=1.0 percent=100
-----
Thanks
Hanlie
More information about the grass-user
mailing list