[GRASS-user] Importing ASCII file

stefano at casalegno.net stefano at casalegno.net
Thu Jun 28 02:19:55 PDT 2012


Hi,
http://osgeo-org.1560.n6.nabble.com/r-in-gdal-worldclim-data-G-set-window-geographic-latitude-not-valid-for-north-td3889261.html

gdal_translate -a_ullr -180 90 180 -60 input_worldclim/hdr.adf new_boundary.tif
g.region n=90N s=60S e=180E w=180W res=00:00:30
r.in.gdal input=new_boundary.tif output=worldclim_map

Cheers
Stefano

www.spatial-ecology.net
-----Original Message-----
From: Daniel Lee [mailto:lee at isi-solutions.org]
Sent: Thursday, June 28, 2012 08:30 AM
To: 'Rainer M Krug'
Cc: 'Rich Shepard', 'GRASS user list'
Subject: Re: [GRASS-user] Importing ASCII file

 Rainer,

Good idea. Here's the output of gdalinfo:

gdalinfo prec_1.asc 
Driver: AAIGrid/Arc/Info ASCII Grid
Files: prec_1.asc
Size is 43200, 18000
Coordinate System is `'
Origin = (-180.000000000000000,90.000000000000000)
Pixel Size = (0.008333333333333,-0.008333333333333)
Corner Coordinates:
Upper Left (-180.0000000, 90.0000000) 
Lower Left (-180.0000000, -60.0000000) 
Upper Right ( 180.0000000, 90.0000000) 
Lower Right ( 180.0000000, -60.0000000) 
Center ( 0.0000000, 15.0000000) 
Band 1 Block=43200x1 Type=Int32, ColorInterp=Undefined
 NoData Value=-9999

So it looks like Arc/Info ASCII grid is correct.

Hamish,

you're right, editing the cell size even with vi would be painful. I wouldn't be afraid to name names about the software, but the fact of the matter is that I don't know what software it is. I downloaded the data from http://www.ccafs-climate.org/data/

In any case, using the -l flag did the trick! Thanks a ton, that makes my day :) Case closed!

Best,
Daniel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120628/316bfccf/attachment-0001.html>


More information about the grass-user mailing list