<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>Hi all list,<br><br>I'm trying to read an ASCII file with several layers<br><br>The files containing the observed climate data are in ASCII format with one file per year per variable. <br>The first and second lines of the file contain information on the grid size, for example:<br><br>grd_sz&nbsp;&nbsp; xmin&nbsp;&nbsp; ymin&nbsp;&nbsp; xmax&nbsp;&nbsp;&nbsp;&nbsp; ymax&nbsp;&nbsp;&nbsp; n_cols n_rows n_months missing<br>0.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.25&nbsp; -89.75&nbsp; 359.75&nbsp;&nbsp; 89.75&nbsp;&nbsp;&nbsp;&nbsp; 720&nbsp;&nbsp;&nbsp;&nbsp; 360&nbsp;&nbsp;&nbsp;&nbsp; 12&nbsp;&nbsp;&nbsp;&nbsp; -9999<br><br>This is followed by 12 monthly grids that are n_cols by n_rows in size. <br>Each record contains n_cols (=720) columns longitude values, format 720i5, starting at xmin (= 0.25 deg East) and ending at xmax (=0.25 deg West) <br>The first record starts at January, ymax (=89.75 deg North) and the last record is the row for December, ymin (=-89.75 deg South). <br>Co-ordinates represent the centre of each grid cell. <br>Missing values (Antarctica, oceans and major inland water bodies) are assigned integer values of -9999.<br><br>The data is Mean temperature dowload of<br><br>http://www.ipcc-data.org/obs/observed_fileformat.html#df<br><br>I tried with<br><br>r3.in.ascii input=ctmp8190.dat output=temp nv=-9999 type=default\<br>precision=default compression=default tiledimension=default<br><br>with this header<br><br>north: 89.75
<br>south: -89.75
<br>east: 359.75
<br>west: 0.25
<br>top: 12
<br>bottom: 0
<br>rows: 360
<br>cols: 720
<br>levels: 12<br><br>And then I used&nbsp; r3.to.rast -r input=temp output=tempe_glo<br><br>My problem is the answer maps are rotated 180 degrees on the axis X (attached example)<br><br>I have never worked with this kind of file, and I'm not sure about the header configuration.<br><br>Somebody can help me, about what is my wrong..<br><br>Thank you for your help.<br><br><div>

<strong><font style="font-size: 10pt;" size="2" face="Times New Roman, Times, Serif">Jhon Ortiz Trujillo <br>Bogotá - Colombia <br><br></font></strong><BR></div><br><br><br /><hr />Charlas más divertidas con el nuevo <a href='http://download.live.com' target='_new'>Windows Live Messenger</a></body>
</html>