It is easy.
Either choose from a long list of built-in or
user-contributed files or make your own.
* built-in. These are the .spk files in
See a demo of these with palette_demo.jnl (from inside
Also see the documentation under 'palette'.
* make your own. Create a file palette_name.spk
Its simplest format has a list of lines in free format,
each line giving 4 numbers:
percent red green blue
All values are 0-100. Percent is along the range of
values; if you don't specify via /LEV=, these will be
the smallest-to-largest values of your data. First one
should be 0, last 100. Next three are percents of R-G-B
for that level. Ferret will interpolate between the
An example is my blue-to-gray-to-red palette:
0 20 20 100
49 85 85 85
51 85 85 85
100 100 20 20
For specific cases you might want RGB_Mapping_By_Value,
which allows you to specify specific colors for specific
values (see documentation).
* Invoke a palette by
or, e.g., SHADE/PAL=palette_name ...
> On Jan 31, 2015, at 8:56 AM, 'Sara Sari' via _OAR
PMEL Ferret Users <ferret_users@xxxxxxxx
> Hi friends,
> Could you please let me know how I can redefine
the color key? it is automatically generated by the
program while I want to define it by myself. actually
I want to have them but define it in a way that I
> for example redefining the black one as "
surface temp" (instead of temp[z=15]) and the red one
"bottom temp" (instead of temp[z=1]).
> Thank you,