Color Mapping: NCL V5 vs V6

From: Paul Scorer <paul.scorer01_at_nyahnyahspammersnyahnyah>
Date: Wed Oct 19 2011 - 05:21:45 MDT

Hi,

I am attempting to reproduce plots from NCL Version 5 under Version 6
and I am finding that the colors are different.

I have set the Color Map (in a "create") thus

"wkColorMap" : "BlAqGrYeOrReVi200"

the relevant opts are

opts_cn@cnLevelSelectionMode = "ManualLevels"
opts_cn@cnMinLevelValF = 5.
opts_cn@cnMaxLevelValF = 95.
opts_cn@cnLevelSpacingF = 5.

I then, in V6, use

gsn_csm_contour_map(wks, mag, opts_cn)

In Version 5, the plotting is (based on) wrf_map()

The data span a range of 0 - 100

The plots were visually different - particularly the top color - so I
measured the RGB Components of each of the 20 colors in the LabelBar for
both V5 & V6. The results are:

          V6 V5
Level R G B R G B
0 0 0 255 0 0 255
1 0 77 255 0 77 255
2 0 162 255 0 155 255
3 0 240 255 0 232 255
4 2 234 190 2 238 204
5 5 211 117 4 215 131
6 7 186 37 6 193 58
7 59 195 12 36 187 13
8 139 219 7 109 210 8
9 211 242 3 182 233 4
10 255 241 0 255 255 0
11 255 214 0 255 227 0
12 255 184 0 255 199 0
13 255 150 0 255 172 0
14 255 95 0 255 130 0
15 255 45 0 255 80 0
16 245 0 8 255 30 0
17 194 0 49 235 0 16
18 138 0 95 184 0 57
19 87 0 136 133 0 98

Can you confirm that the color spread algorithm has changed in V6?

Is there a way to achieve a "Version 5" result?

Many Thanks

PaulS

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Oct 19 05:21:58 2011

This archive was generated by hypermail 2.1.8 : Wed Oct 19 2011 - 13:36:10 MDT