GRASS colors

Bill Brown brown at diego.cecer.army.mil
Mon Aug 22 15:29:55 EDT 1994


> From grass-lists-owner at max.cecer.army.mil Mon Aug 22 13:05:08 1994
> Received: from zorro.cecer.army.mil (zorro.cecer.army.mil [129.229.1.6]) by diego.cecer.army.mil (8.6.9/8.6.9) with ESMTP id NAA25154; Mon, 22 Aug 1994 13:05:03 -0500
> Received: from amber.cecer.army.mil by zorro.cecer.army.mil (8.6.9) id NAA22279; Mon, 22 Aug 1994 13:04:55 -0500
> Received: from max.cecer.army.mil by amber.cecer.army.mil (4.1/SMI-4.1)
> 	id AA15038; Mon, 22 Aug 94 13:02:49 CDT
> Received: from pike.cecer.army.mil (pike.cecer.army.mil [129.229.32.28]) by max.cecer.army.mil (8.6.9/8.6.9) with ESMTP id NAA07055 for <grassu-people at max.cecer.army.mil>; Mon, 22 Aug 1994 13:02:50 -0500
> Received: from amber.cecer.army.mil (amber.cecer.army.mil [129.229.32.40]) by pike.cecer.army.mil (8.6.9/8.6.9) with SMTP id NAA14306 for <grassu-people>; Mon, 22 Aug 1994 13:02:49 -0500
> Received: from max.cecer.army.mil by amber.cecer.army.mil (4.1/SMI-4.1)
> 	id AA15032; Mon, 22 Aug 94 13:02:44 CDT
> Received: from canopus.CC.UManitoba.CA (root at canopus.cc.umanitoba.ca [130.179.16.24]) by max.cecer.army.mil (8.6.9/8.6.9) with SMTP id NAA07052 for <grassu-list at moon.cecer.army.mil>; Mon, 22 Aug 1994 13:02:45 -0500
> From: kilee at CC.UManitoba.CA
> Received: from pollux.cc.umanitoba.ca by canopus.CC.UManitoba.CA
> 	(4.1/25-eef) id AA25341; Mon, 22 Aug 94 13:02:27 CDT
> Received:  by pollux.cc.umanitoba.ca
> 	(4.1/25-eef) id AA09211; Mon, 22 Aug 94 13:02:28 CDT
> Date: Mon, 22 Aug 94 13:02:28 CDT
> Message-Id: <9408221802.AA09211 at pollux.cc.umanitoba.ca>
> Sender: grass-lists-owner at max.cecer.army.mil
> Reply-To: grassu-list at max.cecer.army.mil
> Precedence: Bulk
> To: grassu-list at max.cecer.army.mil
> Status: R
> 
> Dear Grass-users ,
> 
> The following question of mine is beyond GRASS works, but in future
> it need  GRASS works in various its application, in my opinion.
> 
> Q: In GRASS, just 0-255 integer rast-based color coding image is possible,
>    but how about dynamic range color/gray scale image with real number?
>    Is possible now in GRASS ?
>    If not, anyone know Unix-based gray scaling and image generation software
>    and its ftp site ?
>    Actually, at XV( ver 3.0), I handled gray image after assignment into 
>    proper integer number from real number, but some loss of original information...
> 
> Looking forward help...
> Thanks in advance.
>                                                            Kiwon
> 
> ps; I must express my thanks to M. Ameskamp, J. D. McCauley, and J. L. Aycrigg
>     for their advice about my previous question. Now no problem, work out.
>   
>   
> 

Using GRASS color files, you can specify values from 0-255 for EACH 
of the three (red,green,blue) color components, yielding something
like 16 million possible colors.  Of course, the problem comes in 
trying to display your map.  There are severe limitations with the
GRASS X-driver and with 256 color 8-bit monitors.  But even with
24-bit displays, the GRASS X-driver still limits you to something
like 216 colors.  (I understand that the tcl/tk viewer will let you
use all your available color depth).  But for now, if you have a
display device capable of more colors, you could use r.out.ppm to
convert the GRASS raster file into a 24-bit ppm image, then output
that.

And just a reminder that if you're running on an SGI with 24-bit
graphics, don't overlook the IRIS monitor driver, which will give
you 3840 colors.

-Bill




More information about the grass-user mailing list