[GRASS-user] Importing ASCII file

Alberto Pettazzi alberto.pettazzi at meteogalicia.es
Fri Aug 24 01:40:52 PDT 2012


I think you should run r.in.ascii

http://grass.osgeo.org/grass63/manuals/html63_user/r.in.ascii.html

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

http://grass.osgeo.org/grass63/manuals/html63_user/r.slope.aspect.html

and then finally running r.sun

El 24/08/12 03:13, sotototo escribió:
> 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.
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user


-- 

Alberto Pettazzi


MeteoGalicia - Departamento de Climatología y Observación

Consellería de Medio Ambiente, Territorio e Infraestruturas

Rúa de Roma, 6

15707 Santiago de Compostela. A Coruña


Teléfono: +34-881-999646


e-mail: alberto.pettazzi at meteogalicia.es 
<mailto:alberto.pettazzi at meteogalicia.es>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120824/68efbe01/attachment.html>


More information about the grass-user mailing list