[GRASS-user] Importing ASCII file

Sylvain Maillard sylvain.maillard at gmail.com
Fri Aug 24 02:07:20 PDT 2012


Hi,

I think that the real problem is about the projection system

in your raster file:
xllcorner     459000.27618609
yllcorner     298999.76202791

and the error:
Illegal latitude for North

=> grass just say that a latitue of 298999° is irrelevant ;)

so there are 2 possibilities:
1 - your raster file use a projection and you need to import it into a new
location with this projection
2 - the raster is really in decimal lat/lon, but *10000 => xllcorner = 45.9
° and yllcorner = 29.89°

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 ;)

cheers,
Sylvain


2012/8/24 Alberto Pettazzi <alberto.pettazzi at meteogalicia.es>

>  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 listgrass-user at lists.osgeo.orghttp://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
>
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
-------------- section suivante --------------
Une pi?ce jointe HTML a ?t? nettoy?e...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120824/9cf8e409/attachment.html>


More information about the grass-user mailing list