[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GEMPAK #XAL-638423]: Using different color tables



> Hello Steve,
> 
> I'm trying to plot a  using different colors list (coltbl.xwp).
> I've tried to plot one meteorological parameter with a color table and then I
> copy a different color table to coltbl.xwp file. It doesn't work. Although I
> change the coltbl.xwp file, the first color table remains.

Giovanni,

The Device driver reads the color table once on start up. Changing the
coltbl.xwp after the device has started will have no effect.

The LUTFIL parameter defines the color lookup table for the SATFIL or RADFIL
and not graphics.

You can use the GPCOLOR program to define a set of RGB values for one or more
color indicies and then continue your plot programs using the new indicies.
(Caveat: this will work with the xw, ps, gif drivers, but the GF driver
defines the color table indicies for the GIF file from the coltbl.xwp index).

Attached is a sample script that shows how to use GPCOLOR to redefine a color 
index to fill in
each of the US states with a different color.

Steve Chiswell
Unidata User Support





> 
> Is it possible to do what I'm trying to? How? Is it necessary to set "LUTFIL"
> parameter? gpcolor program is necessary?
> 
> thanks,  Giovanni
> 
> --
> Giovanni Dolif
> Meteorologista (Msc.) - CPTEC/INPE
> http://www.cptec.inpe.br
> Tel.: 55 - (12) 3186-8459
> 
> 


Ticket Details
===================
Ticket ID: XAL-638423
Department: Support GEMPAK
Priority: Urgent
Status: Closed

Attachment: testcol.csh
Description: Binary data