<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000099">
    <div class="moz-cite-prefix">I think you should run r.in.ascii<br>
      <br>
      <a class="moz-txt-link-freetext" href="http://grass.osgeo.org/grass63/manuals/html63_user/r.in.ascii.html">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 class="moz-txt-link-freetext" href="http://grass.osgeo.org/grass63/manuals/html63_user/r.slope.aspect.html">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 cite="mid:1345770838982-4997492.post@n6.nabble.com"
      type="cite">
      <pre wrap="">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 class="moz-txt-link-freetext" href="http://osgeo-org.1560.n6.nabble.com/Importing-ASCII-file-tp4984276p4997492.html">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 class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="CONTENT-TYPE" content="text/html;
        charset=ISO-8859-1">
      <title></title>
      <meta name="GENERATOR" content="OpenOffice.org 2.4 (Win32)">
      <meta name="AUTHOR" content="Alberto Pettazzi">
      <meta name="CREATED" content="20080707;17121566">
      <meta name="CHANGEDBY" content="Alberto Pettazzi">
      <meta name="CHANGED" content="20090629;9141230">
      <meta name="CHANGEDBY" content="Alberto Pettazzi">
      <meta name="CHANGEDBY" content="Alberto Pettazzi">
      <meta name="CHANGEDBY" content="Alberto Pettazzi">
      <meta name="CHANGEDBY" content="Alberto Pettazzi">
      <meta name="CHANGEDBY" content="Alberto Pettazzi">
      <meta name="CHANGEDBY" content="Alberto Pettazzi">
      <meta name="CHANGEDBY" content="Alberto Pettazzi">
      <style type="text/css">
        <!--
                @page { size: 21cm 29.7cm; margin: 2cm }
                P { margin-bottom: 0.21cm }
        -->
        </style>
      <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:
          +34-881-999646</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">alberto.pettazzi@meteogalicia.es</a></font></p>
      <p style="margin-bottom: 0cm"><br>
      </p>
    </div>
  </body>
</html>