<div dir="ltr">Thanks for the suggestions.&nbsp; I opened the image up in python using gdal, looked at the geotransform and found that the image is ever-so-slightly shifted west (-180.00000000012497).&nbsp; Hence the negative W-E center.&nbsp; Maybe this is why GRASS thinks it has a 180E origin also, though I don&#39;t know.&nbsp; <br>
<br>I checked the region - same problem - then set it manually and re-imported.&nbsp; Same results.&nbsp; In the end I was able to assign correct extents using r.region.&nbsp; Though the boundary isn&#39;t exactly at 180W, I think nine 0s after the decimal point is a bit much.&nbsp; :-)<br>
<br>Thanks again.<br><br>-Jamie<br><br><div class="gmail_quote">On Mon, Oct 13, 2008 at 1:35 PM, Nikos Alexandris <span dir="ltr">&lt;<a href="mailto:nikos.alexandris@felis.uni-freiburg.de">nikos.alexandris@felis.uni-freiburg.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On Mon, 2008-10-13 at 12:41 -0700, Jamie Adams wrote:<br>

&gt; Hello all,<br>
&gt;<br>
&gt; When I import a global elevation dataset with extents 180w 90n 180e<br>
&gt; 90s using r.in.gdal, the GRASS raster shows up with w-e extents both<br>
&gt; showing 180E. &nbsp;While this doesn&#39;t seem to be affecting raster<br>
&gt; calculations, afaik, it&#39;s causing issues with QGIS. &nbsp;It displays it<br>
&gt; with it&#39;s origin at 180E and extends to 540E. &nbsp;Has anyone run into<br>
&gt; this problem?<br>
&gt;<br>
&gt; gdalinfo:<br>
&gt;<br>
&gt; Driver: GTiff/GeoTIFF<br>
&gt; Files: 2_00-res/out-2_00-nozero-res.tif<br>
&gt; Size is 43200, 21600<br>
&gt; Coordinate System is:<br>
&gt; GEOGCS[&quot;WGS 84&quot;,<br>
&gt; &nbsp; &nbsp; DATUM[&quot;WGS_1984&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; SPHEROID[&quot;WGS 84&quot;,6378137,298.2572235630016,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],<br>
&gt; &nbsp; &nbsp; PRIMEM[&quot;Greenwich&quot;,0],<br>
&gt; &nbsp; &nbsp; UNIT[&quot;degree&quot;,0.0174532925199433],<br>
&gt; &nbsp; &nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]<br>
&gt; Origin = (-180.000000000124970,90.000000000000000)<br>
&gt; Pixel Size = (0.008333333333333,-0.008333333333333)<br>
&gt; Metadata:<br>
&gt; &nbsp; AREA_OR_POINT=Area<br>
&gt; Image Structure Metadata:<br>
&gt; &nbsp; INTERLEAVE=BAND<br>
&gt; Corner Coordinates:<br>
&gt; Upper Left &nbsp;(-180.0000000, &nbsp;90.0000000) (180d 0&#39;0.00&quot;W, 90d 0&#39;0.00&quot;N)<br>
&gt; Lower Left &nbsp;(-180.0000000, -90.0000000) (180d 0&#39;0.00&quot;W, 90d 0&#39;0.00&quot;S)<br>
&gt; Upper Right ( 180.0000000, &nbsp;90.0000000) (180d 0&#39;0.00&quot;E, 90d 0&#39;0.00&quot;N)<br>
&gt; Lower Right ( 180.0000000, -90.0000000) (180d 0&#39;0.00&quot;E, 90d 0&#39;0.00&quot;S)<br>
&gt; Center &nbsp; &nbsp; &nbsp;( &nbsp;-0.0000000, &nbsp; 0.0000000) ( &nbsp;0d 0&#39;0.00&quot;W, &nbsp;0d 0&#39;0.00&quot;N)<br>
&gt; Band 1 Block=43200x1 Type=Float32, ColorInterp=Gray<br>
&gt; &nbsp; NoData Value=10<br>
&gt;<br>
&gt; <a href="http://r.info" target="_blank">r.info</a>:<br>
&gt;<br>
&gt; +----------------------------------------------------------------------------+<br>
&gt; | Layer: &nbsp; &nbsp;2_00_res &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Date: Fri Oct 10 17:45:37<br>
&gt; 2008<br>
&gt; | Mapset: &nbsp; PERMANENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Login of Creator: jamie<br>
&gt;<br>
&gt; | Location: Bathy<br>
&gt;<br>
&gt; | DataBase: /work/grass<br>
&gt;<br>
&gt; | Title: &nbsp; &nbsp; ( 2_00_res )<br>
&gt;<br>
&gt; | Timestamp: none<br>
&gt;<br>
&gt; |----------------------------------------------------------------------------<br>
&gt; |<br>
&gt;<br>
&gt; | &nbsp; Type of Map: &nbsp;raster &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Number of Categories: 255<br>
&gt;<br>
&gt; | &nbsp; Data Type: &nbsp; &nbsp;FCELL<br>
&gt;<br>
&gt; | &nbsp; Rows: &nbsp; &nbsp; &nbsp; &nbsp; 21600<br>
&gt;<br>
&gt; | &nbsp; Columns: &nbsp; &nbsp; &nbsp;43200<br>
&gt;<br>
&gt; | &nbsp; Total Cells: &nbsp;933120000<br>
&gt;<br>
&gt; | &nbsp; &nbsp; &nbsp; &nbsp;Projection: Latitude-Longitude<br>
&gt;<br>
&gt; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;N: &nbsp; &nbsp; &nbsp; &nbsp;90N &nbsp; &nbsp;S: &nbsp; &nbsp; &nbsp; &nbsp;90S &nbsp; Res: 0:00:30<br>
&gt;<br>
&gt; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;E: &nbsp; &nbsp; &nbsp; 180E &nbsp; &nbsp;W: &nbsp; &nbsp; &nbsp; 180E &nbsp; Res: 0:00:30<br>
&gt;<br>
&gt; | &nbsp; Range of data: &nbsp; &nbsp;min = -10814.000000 &nbsp;max = -0.010000<br>
&gt;<br>
&gt; |<br>
&gt;<br>
&gt; | &nbsp; Data Description:<br>
&gt;<br>
&gt; | &nbsp; &nbsp;generated by r.in.gdal<br>
&gt;<br>
&gt; |<br>
&gt;<br>
&gt; | &nbsp; Comments:<br>
&gt;<br>
&gt; | &nbsp; &nbsp;r.in.gdal input=&quot;out-2_00-nozero-res.tif&quot; output=&quot;2_00_res&quot;<br>
&gt;<br>
&gt; |<br>
&gt;<br>
&gt; +----------------------------------------------------------------------------+<br>
&gt;<br>
<br>
</div></div>1. I am not 100% sure but I think the line &quot;Center &nbsp; &nbsp; &nbsp;( &nbsp;-0.0000000,<br>
0.0000000) ( &nbsp;0d 0&#39;0.00&quot;W, &nbsp;0d 0&#39;0.00&quot;N)&quot; in the geo-metadata should<br>
read enter &nbsp; &nbsp; &nbsp;( &nbsp;0.0000000, &nbsp; -0.0000000) ( &nbsp;0d 0&#39;0.00&quot;W, &nbsp;0d<br>
0&#39;0.00&quot;N)<br>
<br>
(Could it be that the file is not ok?)<br>
<br>
2. What doeas g.region -p say? If you get the same value for east and<br>
west it&#39;s wrong I guess. west should be, well... west: 180W and east:<br>
180E.<br>
<br>
3. Try to set &quot;g.region e=180 s=-90 w=-180 n=90 -p&quot;. Re-import again and<br>
check for errors.<br>
<br>
Regards, Nikos<br>
<br>
<br>
</blockquote></div><br></div>