[GRASS-user] new to GRASS

hello all
iam quite new to GRASS infact i started it jst a few days back

i downloaded the source GRASS 6.2.1 source code n compiled it on my redhat enterprise linux machine and i was able to start GRASS
n started using it.
i also istalled the two mandatory gdal n other library

now say i want to display just a .tif image i did the following
i selected the database a location and a mapset at startup screen after which i was able to see the GIS manager GUI
i have got say a .tif image.
1 …converted the .tif image into raster using r.in.gdal input=filename.tif output =output raster image name
2 …started the monitor x0 as d.mon x0
3 …tried to diplay image on mon using d.rast= outut raster image name

but iam unable to see anything in the x0 monitor though the whole process dint showd any errors
though wen i change the background color in d.rast window i can see a coloured surface of size of my original image on x0 but not the real image
,being quite new to the GIS field iam not able to figure out wat am i missing .
right now i just wanted to display a tif image or may be a .img file on the monitorr
which iam not able to do
may be anyone of u could help

Savitri negi
DEAL,india

Hello savitri,

"savitri negi" <savitrinegi1@rediffmail.com> wrote at 22 Jan 2007
07:18:00 -0000:

hello all
iam quite new to GRASS infact i started it jst a few days back

i downloaded the source GRASS 6.2.1 source code n compiled it on my
redhat enterprise linux machine and i was able to start GRASS n
started using it. i also istalled the two mandatory gdal n other
library

now say i want to display just a .tif image i did the following
i selected the database a location and a mapset at startup screen
after which i was able to see the GIS manager GUI i have got say
a .tif image. 1 ..converted the .tif image into raster using
r.in.gdal input=filename.tif output =output raster image name
2 ..started the monitor x0 as d.mon x0 3 ...tried to diplay image
on mon using d.rast= outut raster image name

but iam unable to see anything in the x0 monitor though the whole
process dint showd any errors though wen i change the background
color in d.rast window i can see a coloured surface of size of my
original image on x0 but not the real image ,being quite new to the
GIS field iam not able to figure out wat am i missing . right now i
just wanted to display a tif image or may be a .img file on the
monitorr which iam not able to do may be anyone of u could help

You probably need to set the region correctly that it fits to the
bounding box of your imported image.

try:
g.region -p rast=<yourimported-mapname>
d.mon x0
d.rast <yourimported-mapname>

This assumes that you have imported your map correctly with r.in.gdal.

HTH

  Stephan Holl

--
Stephan Holl: www.intevation.de/~stephan| GISpatcher: www.gispatcher.de
Intevation GmbH: www.intevation.de | GAV e.V.: www.grass-verein.de
Georgstr.4: 49074 Osnabrück | Telefon: +49(0)541. 3350832

Hi,

On 22 Jan 2007 07:18:00 -0000
"savitri negi" <savitrinegi1@rediffmail.com> wrote:

hello all
iam quite new to GRASS infact i started it jst a few days back

i downloaded the source GRASS 6.2.1 source code n compiled it on my redhat

enterprise linux machine and i was able to start GRASS

n started using it.
i also istalled the two mandatory gdal n other library

now say i want to display just a .tif image i did the following
i selected the database a location and a mapset at startup screen after

which i was able to see the GIS manager GUI

i have got say a .tif image.
1 ..converted the .tif image into raster using r.in.gdal input=filename.tif

output =output raster image name

2 ..started the monitor x0 as d.mon x0

using d.mon you might need a further step here to set the extend of your current
region to the tif before you display it.

g.region rast=output_raster_image_name

hth,
Otto

3 ...tried to diplay image on mon using d.rast= outut raster image name

but iam unable to see anything in the x0 monitor though the whole process

dint showd any errors

though wen i change the background color in d.rast window i can see a

coloured surface of size of my original image on x0 but not the real image

,being quite new to the GIS field iam not able to figure out wat am i missing

.

right now i just wanted to display a tif image or may be a .img file on the

monitorr

which iam not able to do
may be anyone of u could help

Savitri negi
DEAL,india

Stephan Holl wrote:

You probably need to set the region correctly that it fits to the
bounding box of your imported image.

try:
g.region -p rast=<yourimported-mapname>

Unless the TIFF image contains georeferencing information (use r.info
to determine the bounds of the imported map), you need to move the map
to the correct location, rather than moving the region to the imported
map. Use r.region to set the bounds of a raster map.

--
Glynn Clements <glynn@gclements.plus.com>