[GRASS-user] Importing ASCII file

sotototo sogal83 at gmail.com
Thu Aug 23 18:13:58 PDT 2012


Hi, 

Im new to Grass GIS and I have the same problem.

I have an ascii Lidar data set with XYZ values in the following format.

ncols         1999
nrows         1998
xllcorner     459000.27618609
yllcorner     298999.76202791
cellsize      0.5
NODATA_value  -9999
-9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999
-9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999
-9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 


When I run r.in.arc I get the following error.

Illegal "yllcorner" value in header: "298999.76202791"
Illegal latitude for North
ERROR: Can't get cell header

I tried r.in.xyz and I got this error.

ERROR: Not enough data columns. Incorrect delimiter or column number? Found
the following character(s) in row 1:
[ncols         1999]

I also tried the r3.in.ascii and i got this error.

ERROR: readHeaderString: header value invalid


..........

So could you please tell me if i do something wrong?

I actually want to use the r.sun algorithm to calculate solar radiation and
if Im not mistaken the first step is to import first the ascii file to
GRASS.


Thank you





--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Importing-ASCII-file-tp4984276p4997492.html
Sent from the Grass - Users mailing list archive at Nabble.com.


More information about the grass-user mailing list