printing grey scale with color overlay

Heiner Körnich heiner at MISU.SU.SE
Wed Nov 15 08:13:03 EST 2006


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/



More information about the gradsusr mailing list