Hi Nikos:<div>Thanks for your detailed reply!</div><div>And I know the reason of the problem now.</div><div>However as what you said,I should create a new location and mapset if necessary,it does not work.</div><div>I create two folders nLocation/nmapset and create a wind file in the nmapset dir,however when I run the grass gui,I also can not seclect the new location to enter. It throw the error message:the selection location [nlocation ]is not valide. Is the procedure I create the new location is wrong? I followed the maual</div>
<div><br></div><div>maven</div><div><br></div><div><div class="gmail_quote">2009/6/11 Nikos Alexandris <span dir="ltr">&lt;<a href="mailto:nikos.alexandris@felis.uni-freiburg.de">nikos.alexandris@felis.uni-freiburg.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
maven apache:<br>
<div class="im">&gt; When import some raster data to grass,I use the following cmd:<br>
&gt; 1) g.region -d<br>
<br>
</div>This sets to the &quot;default&quot; region which one previously needs to define,<br>
i.e. needs to create with &quot;g.region -s&quot;. Please check the manual of<br>
g.region.<br>
<div class="im"><br>
<br>
&gt; 2) r.in.gdal input=D:/test.TIF output=testTT --overwrite<br>
<br>
&gt; I got the error message as following:<br>
&gt; ---------------<br>
&gt; Projection of dataset does not appear to match current location.<br>
&gt;Location PROJ_INFO is:<br>
&gt;name: UTM<br>
&gt;datum: nad27<br>
</div>[...]<br>
<div class="im">&gt; Import dataset PROJ_INFO is:<br>
&gt; cellhd.proj = 0 (unreferenced/unknown)<br>
&gt; ------------------------<br>
<br>
</div>That&#39;s seems normal. Your test.TIF either isn&#39;t georeferenced or it lost<br>
its geotags at some point (after editing with non-GIS tool perhaps?).<br>
<div class="im"><br>
&gt; 3) change the cmd to &quot; r.in.gdal -o input=D:/test.TIF output=testTT<br>
&gt; --overwrite &quot;  I know this override the projection,however I am not<br>
&gt; sure the potential  effect to the data.<br>
<br>
</div>You should use that only if you _know_ that your test.TIF data are<br>
projected in the system that your grass-location is defined (e.g.<br>
&quot;datum: nad27&quot; as one can see in the error message above). If your data<br>
(test.TIF) are projected in another proj. system expect errors.<br>
<div class="im"><br>
<br>
&gt; Now the tiff is imported,and I got testTT.bule testTT.red<br>
&gt; testTT.green, then I  open them can only see blank. So I wonder it is<br>
&gt; caused by the projection or location,I use the spanish data as the<br>
&gt; default location , and I tried to create new location and mapset but<br>
&gt; never success...<br>
<br>
<br>
</div>So, given that test.TIF is in &quot;UTM, datum: nad27&quot; then you need to:<br>
1. import with r.in.gdal -o (as you already did).<br>
2. g.region rast=testTT.blue<br>
3. view your data<br>
<br>
If the test.TIF data are projected in another system you need to:<br>
1. find out which is that projection system<br>
2. use some gdal tools to assign the proj. information in the test.TIF<br>
file<br>
3. define a &quot;new&quot; grass-location based on the projection information of<br>
the test.TIF data<br>
4. import with r.in.gdal (without the use of &quot;-o&quot; flag)<br>
5. g.region rast=OneOfTheImportedBands<br>
6. view, process, etc.<br>
<br>
<br>
Greetings, Nikos<br>
<br>
<br>
<br>
</blockquote></div><br></div>