Hi ~ guys. I have a question about the contour command. When I call
it like this:
r=[136,119,102,085,068,051,034,017,000,000,000,000,000,$
000,000,000,000,000,000,007,015,023,031,038,046,054,062,086, 110,134,158,182,$
206,230,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,$
255,255,255,255,255,255,255,255,255,255,255]
g=[136,119,102,085,068,051,034,017,000,000,000,000,000,$
000,000,000,000,000,000,028,056,084,112,140,168,196,224,227, 231,235,239,243,$
247,251,255,250,245,240,235,230,225,220,215,210,200,190,170, 156,130,104,078,052,026,$
000,000,000,000,000,000,000,000,000,000,000]
;
b=[136,119,102,085,068,051,034,017,000,000,020,050,080,$
109,120,145,182,218,255,223,191,159,127,095,063,031,000,000, 000,000,000,000,$
000,000,000,000,000,000,000,000,000,000,000,000,000,000,000, 000,000,000,000,000,000,$
000,031,050,080,100,125,150,170,191,223,255]
cn = r + 256L * ( g + 256L * b)
window,xsize=xs,ysize=ys+100,retain = 2
map_set,/grid, /continents,/CYLINDRICAL,limit=[-34.3842,min
(lon),-31.6985,max(lon)],$
color=64,/noborder,ymargin=[15,5]
map_grid, color=64
map_continents,/countries, /coasts, color=64
contour,inits,color=64,title='Sensible heat flux', /device,/
NOERASE,xrange=[0,76],$
/xstyle,xTICKINTERVAL=73,xTICKNAME=[lon1(0),lon1(3)],$
yrange=[0,74],/ystyle,yTICKINTERVAL=73,yTICKNAME=[lat1(3),la t1(0)],
$
C_COLORS=cn,/cell_FILL,nLEVELS=48,ymargin=[15,5]
Contour, inits, Color=63,/Overplot,nLEVELS=30
It always starts fill the contour from the first color no matter what
value i change in the C_COLORS=cn key word. (For example. change it
to C_COLORS=cn+15 or C_COLORS=cn +35)
But when I do it like this:
cn1= cn (15:63)
map_set,/grid, /continents,/CYLINDRICAL,limit=[-34.3842,min
(lon),-31.6985,max(lon)],$
color=64,/noborder,ymargin=[15,5]
map_grid, color=64
map_continents,/countries, /coasts, color=64
contour,inits,color=64,title='Sensible heat flux', /device,/
NOERASE,xrange=[0,76],$
/xstyle,xTICKINTERVAL=73,xTICKNAME=[lon1(0),lon1(3)],$
yrange=[0,74],/ystyle,yTICKINTERVAL=73,yTICKNAME=[lat1(3),la t1(0)],
$
C_COLORS=cn1,/cell_FILL,nLEVELS=48,ymargin=[15,5]
Contour, inits, Color=63,/Overplot,nLEVELS=30
It shows me the right color and I can change the color in the contour
command, Why is that? Any one got ideas?
Thanks
|