WXP
File Reference

Color Fill File (.cfl)

The color fill resource allows a great deal of tailoring of contour plots. The color fill values, colors and attributes especially for large lists can be cumbersome specified on the command line. Therefore, these resources can be specified in a color fill file. The parameters in this file are the same as those listed in the color_fill resource but the multiple parameters are listed on separate lines.

FORMAT

The syntax for each line is:

[value:]color[:attrib]
[value:]color[:attrib]
...

Where:

There are special lines that can be added to the top of the file:

EXAMPLES

For example:

0:white
10:red
30:blue
100:green

Specifies to contour white all areas running from values 0 to 10, red from 10 to 30, green from 30 to 100 and all values above 100 as green. The values less than 0 are not contoured.

0:white:st=2
10:red:wi=3
30:blue:fp=14:st=3
100:green:fp=16

For color fill contours, the attributes would use fill pattern 14 for the blue areas and fill pattern 16 for the green areas.

Here is a sample prec.cfl file:

.01:DDMagenta
.05:DMagenta
.1:MMagenta
.175:BMagenta
.25:Blue
.375:LBlue
.5:Green
.75:LGreen
1:Brown
1.5:Yellow
2:Red
3:Lred
4:LGray

Here is a sample radmos2a.cfl file:

@label dBZ(winter)
@value
-150:off:la=|
0:aqua3:la=_
2:aqua4:la=_
4:aqua5:la=_
6:aqua6:la=_
8:aqua7:la=rain
10:aqua8:la=_
12:aqua9:la=_
14:aqua10:la=_
16:aqua11:la=_
18:aqua12:la=_
20:green1:la=20
22:green2:la=_
...
90:off:la=|
100:pink1:la=_
104:pink2:la=_
108:pink3:la=_
110:pink4:la=_
112:pink5:la=_
114:pink6:la=mixed
116:pink7:la=_
118:pink8:la=_
120:pink9:la=_
122:pink10:la=_

This is applied to a radar mosaic image. The @label is used to specify this is a winter color scheme and the units are dBZ. The individual like labels are used to denote the colors for rain, mixed and snow.

SEE ALSO

Last updated May 10, 2020