Hi,<br><br>I think that the real problem is about the projection system<br><br>in your raster file:<br>xllcorner 459000.27618609<br>yllcorner 298999.76202791<br><br>and the error:<br>Illegal latitude for North<br><br>
=> grass just say that a latitue of 298999° is irrelevant ;)<br><br>so there are 2 possibilities:<br>1 - your raster file use a projection and you need to import it into a new location with this projection<br>2 - the raster is really in decimal lat/lon, but *10000 => xllcorner = 45.9 ° and yllcorner = 29.89°<br>
<br>as your are using lidar data at a resolution of 0,5 it seems to me that the unit used in your ratser coordinate is meters, so you need to know the raster coordinate system before you can use it ;)<br><br>cheers,<br>Sylvain<br>
<br><br><div class="gmail_quote">2012/8/24 Alberto Pettazzi <span dir="ltr"><<a href="mailto:alberto.pettazzi@meteogalicia.es" target="_blank">alberto.pettazzi@meteogalicia.es</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000099">
<div>I think you should run r.in.ascii<br>
<br>
<a href="http://grass.osgeo.org/grass63/manuals/html63_user/r.in.ascii.html" target="_blank">http://grass.osgeo.org/grass63/manuals/html63_user/r.in.ascii.html</a><br>
<br>
if you want to use r.sun you have to import the digital terrain
model first. then you have to create a slope and an aspect rasters
and then run r.sun with the r.slope.aspect command<br>
<br>
<a href="http://grass.osgeo.org/grass63/manuals/html63_user/r.slope.aspect.html" target="_blank">http://grass.osgeo.org/grass63/manuals/html63_user/r.slope.aspect.html</a><br>
<br>
and then finally running r.sun<br>
<br>
El 24/08/12 03:13, sotototo escribió:<br>
</div>
<blockquote type="cite">
<pre>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: <a href="http://osgeo-org.1560.n6.nabble.com/Importing-ASCII-file-tp4984276p4997492.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/Importing-ASCII-file-tp4984276p4997492.html</a>
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
</blockquote>
<br>
<br>
<div>-- <br>
<p style="margin-bottom:0cm"><font color="#000080">Alberto
Pettazzi</font></p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm"><font color="#000080">MeteoGalicia -
Departamento de Climatología y Observación</font></p>
<p style="margin-bottom:0cm"><font color="#000080">Consellería
de Medio Ambiente, Territorio e Infraestruturas </font>
</p>
<p style="margin-bottom:0cm"><font color="#000080">Rúa de
Roma, 6</font></p>
<p style="margin-bottom:0cm"><font color="#000080">15707 Santiago
de
Compostela. A Coruña</font></p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm"><font color="#000080">Teléfono:
<a href="tel:%2B34-881-999646" value="+34881999646" target="_blank">+34-881-999646</a></font></p>
<p style="margin-bottom:0cm"><br>
</p>
<p style="margin-bottom:0cm"><font color="#000080">e-mail:
<a href="mailto:alberto.pettazzi@meteogalicia.es" target="_blank">alberto.pettazzi@meteogalicia.es</a></font></p>
<p style="margin-bottom:0cm"><br>
</p>
</div>
</div>
<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
<br></blockquote></div><br>