<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 09/30/2010 11:13 AM, Ivan Henriquez Rivera wrote:
<blockquote
cite="mid:AANLkTinF1x6FSBYOH7O6HiESsSY0ySnzy3DZuP75UHk8@mail.gmail.com"
type="cite">
<div>Hello!</div>
<div><br>
</div>
<div>My name is Ivan.</div>
<div>I have been trying to import a GIS raster flie to GRASS64.</div>
<div>I do the next proucedure in Ubuntu 10.04:</div>
<div><br>
</div>
<div>-I run grass64</div>
<div>-I define a new location using the EPSG code: 32161 (based in
the information at the end of this email)</div>
<div>-When Grass asks me: Select datum transformation parameters, </div>
<div> I choose the second one: (Used in whole nad83 region. towgs84 =
0.000, 0.000, 0.000)</div>
<div>-Then I enter in the PERMANENT folder.</div>
<div><br>
</div>
<div>And then I do this:</div>
<div>
<div><br>
</div>
<div><font class="Apple-style-span" color="#33ccff">r.in.gdal
input=/home/ivan/grassdata/prgap_landcover.img output=puertoRico</font></div>
<div><font class="Apple-style-span" color="#33ccff">Projection of
input dataset and current location appear to match</font></div>
<div><font class="Apple-style-span" color="#33ccff">r.in.gdal
complete. Raster map <puertoRico> created.</font></div>
<div><font class="Apple-style-span" color="#33ccff">d.rast
map=puertoRico@PERMANENT -o</font></div>
<div><font class="Apple-style-span" color="#33ccff">PNG:
GRASS_TRUECOLOR status: TRUE</font></div>
<div><font class="Apple-style-span" color="#33ccff">PNG: collecting
to file: /home/ivan/grassdata/pr/PERMANENT/.tmp/ivan-laptop/6771.0.ppm,</font></div>
<div><font class="Apple-style-span" color="#33ccff">
GRASS_WIDTH=642, GRASS_HEIGHT=482</font></div>
<div><font class="Apple-style-span" color="#33ccff">g.pnmcomp
in=6771.2.ppm mask=6771.2.pgm opacity=1.0 background=255:255:255
width=642 height=482 output=6771.1.ppm</font></div>
<div><font class="Apple-style-span" color="#33ccff">d.rast
map=puertoRico@PERMANENT -o</font></div>
<div><font class="Apple-style-span" color="#33ccff">PNG:
GRASS_TRUECOLOR status: TRUE</font></div>
<div><font class="Apple-style-span" color="#33ccff">PNG: collecting
to file: /home/ivan/grassdata/pr/PERMANENT/.tmp/ivan-laptop/6771.0.ppm,</font></div>
<div><font class="Apple-style-span" color="#33ccff">
GRASS_WIDTH=482, GRASS_HEIGHT=482</font></div>
<div><font class="Apple-style-span" color="#33ccff">g.pnmcomp
in=6771.2.ppm mask=6771.2.pgm opacity=1.0 background=255:255:255
width=482 height=482 output=6771.1.ppm</font></div>
<div><font class="Apple-style-span" color="#33ccff">g.region
n=18.529654 s=17.874067 e=-65.218506 w=-67.957335 rows=4793 cols=19279
nsres=15 ewres=15 tbres=1</font></div>
<div><font class="Apple-style-span" color="#33ccff">d.rast
map=puertoRico@PERMANENT -o</font></div>
<div><font class="Apple-style-span" color="#33ccff">PNG:
GRASS_TRUECOLOR status: TRUE</font></div>
<div><font class="Apple-style-span" color="#33ccff">PNG: collecting
to file: /home/ivan/grassdata/pr/PERMANENT/.tmp/ivan-laptop/6771.0.ppm,</font></div>
<div><font class="Apple-style-span" color="#33ccff">
GRASS_WIDTH=482, GRASS_HEIGHT=482</font></div>
<div><font class="Apple-style-span" color="#33ccff">g.pnmcomp
in=6771.2.ppm mask=6771.2.pgm opacity=1.0 background=255:255:255
width=482 height=482 output=6771.1.ppm</font></div>
<div><font class="Apple-style-span" color="#33ccff">g.pnmcomp
in=6771.2.ppm mask=6771.2.pgm opacity=1.0 background=255:255:255
width=482 height=482 output=6771.1.ppm</font></div>
<div><font class="Apple-style-span" color="#33ccff">d.rast
map=puertoRico@PERMANENT -o</font></div>
<div><font class="Apple-style-span" color="#33ccff">PNG:
GRASS_TRUECOLOR status: TRUE</font></div>
<div><font class="Apple-style-span" color="#33ccff">PNG: collecting
to file: /home/ivan/grassdata/pr/PERMANENT/.tmp/ivan-laptop/6771.0.ppm,</font></div>
<div><font class="Apple-style-span" color="#33ccff">
GRASS_WIDTH=482, GRASS_HEIGHT=482</font></div>
<div><font class="Apple-style-span" color="#33ccff">g.pnmcomp
in=6771.2.ppm mask=6771.2.pgm opacity=1.0 background=255:255:255
width=482 height=482 output=6771.1.ppm</font></div>
<div><font class="Apple-style-span" color="#33ccff">d.rast
map=puertoRico@PERMANENT -o</font></div>
<div><font class="Apple-style-span" color="#33ccff">PNG:
GRASS_TRUECOLOR status: TRUE</font></div>
<div><font class="Apple-style-span" color="#33ccff">PNG: collecting
to file: /home/ivan/grassdata/pr/PERMANENT/.tmp/ivan-laptop/6771.3.ppm,</font></div>
<div><font class="Apple-style-span" color="#33ccff">
GRASS_WIDTH=642, GRASS_HEIGHT=154</font></div>
<div><font class="Apple-style-span" color="#33ccff">g.pnmcomp
in=6771.5.ppm mask=6771.5.pgm opacity=1.0 background=255:255:255
width=642 height=154 output=6771.4.ppm</font></div>
<div><br>
</div>
<div>The problem is that the Map Display is in blank.</div>
</div>
</blockquote>
Hi Ivan:<br>
First, as Benjamin said, double check that your current region matches
the imported raster.<br>
Now, you'll need to start a monitor:<br>
d.mon start=x0<br>
and then run d.rast<br>
<br>
When working on the command line, all the d.* commands are sent to
whatever is the currently active monitor window. If no window was
opened, then the d.* commands are sent to a *png file*. ( With the
above commands, and no monitor window open, your landcover should be in
the png image file: "6771.1.ppm")<br>
So first start a monitor with d.mon, then you should see the raster in
that window.<br>
<br>
Alternatively, you can switch over to work straight in the GRASS GUI.
Use the GUI "Layer Manager" to add your raster, and it will appear in
the GUI "Map Display". Often I find it easiest to use the command line
for running analyses, and in parallel, the GUI for displaying the
results.<br>
-- <br>
Micha<br>
</body>
</html>