printing grey scale with color overlay

Heiner Körnich heiner at MISU.SU.SE
Thu Nov 16 02:59:38 EST 2006


Dear Mahakur,

you can change the brightness of grey with the number x in
'set rgb 20 x x x '
The number 20 stands for the new defined colour.

Here is a script for shaded output. In order to reset the rainbow colors
use 'set rbcols auto'. For colored contour plot, use 'set ccols ...' and
'set clevs ...'.

If your variable is ta:

* define colour table
'set rgb 21 0   0  0 '
'set rgb 22 20 20 20 '
'set rgb 23 40 40 40 '
'set rgb 24 60 60 60 '
'set rgb 25 80 80 80 '
'set rgb 26 100 100 100 '
'set rgb 27 120 120 120 '
'set rgb 28 140 140 140 '
'set rgb 29 160 160 160 '
'set rgb 30 180 180 180 '
'set rgb 31 200 200 200 '
'set rgb 32 220 220 220 '
'set rgb 33 240 240 240 '
* set rainbow sequence to grey shades
'set rbcols 21 22 23 24 25 26 27 28 29 30 31 32 33'
'set gxout shaded'
'd ta'
'set rbcols auto'
'set gxout contour'
* choose colors for contours
'set ccols 2 3 4 5 6'
* choose values of contours
'set clevs 210 220 230 240'
'd ta'

Good luck,
Heiner

M.Mahakur wrote:
> Respected Heiner,
>
> Thanks! It wroked and display is better (more smoothed) than my earlier
> grey+color display. But, I can dim the  grey  shaded portion?
>
> Regards,
>
> Mahakur
>
> Heiner Körnich wrote:
>
>> Hi,
>>
>> you have to use always "set display color" and then define your own
>> color scale which has only grey colors, eg.
>> 'set rgb 20 15 15 15 '
>>
>> Then use the commands 'set clevs lev1 lev2 ...' and 'set ccols col1 col2
>> ...' in order to produce a grey shaded plot. These grey tones are also
>> grey in a colored PNG file.
>>
>> Greetings,
>> Heiner
>>
>> M.Mahakur wrote:
>>
>>> Respected Users,
>>>
>>> I can display the  grey scale shaded plots overlapped with color (for
>>> non-zero) values using following few lines. As I wants to display all
>>> the plots having observations and white out the UNDEF (i.e. no
>>> satellite
>>> pass).  But, when 'display' the gmf (stored using print) using the
>>> 'gxtran' or PNG file from 'printim' displays all with colors (no grey)
>>> i.e. it  does save in the files what it was in the display. How can I
>>> over come this?
>>>
>>> -----------------------------------
>>> 'set gxout shaded'
>>> 'set display greyscale'
>>> 'd rr'
>>> *** DISPLAY IN GREY SHADES
>>> 'set display color'
>>> 'set clevs  0.1 0.5 2  3  4  5  7  9  12 15 20 25 30 35'
>>> 'set ccols  3   17  18 19 20 21 22 23 24 25 26 27 28 29 30 '
>>> 'd maskout(rr,rr-1.0e-33)'
>>> **** DISPLAY NON-ZERO VALUES IN RGB COLORS
>>> ---------
>>>
>>> Regards,
>>>
>>> Mahakur
>>>
>>
>> --
>> Heiner Körnich
>> Dept. of Meteorology            Tel:  +46 8 164333
>> Stockholms University, SE-106 91 Stockholm, Sweden
>> Email: heiner at misu.su.se   www.misu.su.se/~heiner/
>>
>

--
Heiner Körnich
Dept. of Meteorology            Tel:  +46 8 164333
Stockholms University, SE-106 91 Stockholm, Sweden
Email: heiner at misu.su.se   www.misu.su.se/~heiner/



More information about the gradsusr mailing list