[GRASS-user] Problem with display of Raster file.

Philipp Steigenberger userlist at online.de
Thu Feb 21 07:40:44 EST 2008


Kunal,
you have got 3 bands, red, green and blue of your tiff. To get a
RGB-Picture use
r.composite.
In the shell first start GRASS in PERMANENT, mark the following 5 lines
with your mouse and insert them in the shell by clicking the middle
mouse button (mouse wheel (or just copy it))
###############################################################
r.composite red=tm.red green=tm.green blue=tm.blue output=tm
g.regiion rast=tm
d.mon start=x3
d.rast tm

################################################################
Have luck


For more calculation it might be better to create a user mapset. From
there you can use the maps in permanent too, but they stay save there.

cheers
Philipp


Kunal Malik schrieb:
> HI!
> I am  trying to display the tif file ,,
> 
> by first importing  the tif file by
> r.in.gdal -e in=nf42_geo.tif out=tm
> WARNING: Datum 'unknown' not recognised by GRASS and no parameters found.
>          Datum transformation will not be possible using this projection
>          information.
> Projection of input dataset and current location appear to match.
> Proceeding with import...
>  100%
> CREATING SUPPORT FILES FOR tm.red
> SETTING GREY COLOR TABLE FOR tm.red (8bit, full range)
>  100%
> CREATING SUPPORT FILES FOR tm.green
> SETTING GREY COLOR TABLE FOR tm.green (8bit, full range)
>  100%
> CREATING SUPPORT FILES FOR tm.blue
> SETTING GREY COLOR TABLE FOR tm.blue (8bit, full range)
> r.in.gdal complete.
> 
> now i am trying to display the imported file..
> i got the error
> 
>  g.region rast=tm
> ERROR: raster map <tm> not found.
> 
> when i observe three files are created in PERMANENT/cats
> tm.red,tm.blue,tm.green.
> but it is not the actual file that i want to see..
> Please tell how could i display it.
> Thanks in Advance
> 



More information about the grass-user mailing list