Hi Chao,
Are you setting the resource:
res@cnLevelSelectionMode = "ManualLevels"
If you aren't, then cnMinLevelValF/cnMaxLevelValF/cnLevelSpacingF will
not have any effect...
Adam
Chao Luo wrote:
> Hi All,
>
> I want to fill drainage basin with different color. The variable is 2d
> dimension with different number (same number in same drainage area). For
> example, 550 in area of 10-15N, 20-40E; and 800 in area 20-30N, 80-100E,
> and so on. I want to fill the different color for different number in
> different drainage basin areas like different color for different
> country in world map.
>
> Here is the part of code I used in the script. But it doesn't work.
>
> res@cnFillOn = True ; turns on the color
> res@mpFillOn = True
> res@cnLinesOn = False
> res@cnMinLevelValF = 300. ; set min contour level
> res@cnMaxLevelValF = 900. ; set max contour level
> ;res@cnLevelSpacingF = 50
> plot(0) = gsn_csm_contour_map_ce(wks_id,bsn_mdl(:,:),res)
>
>
> Is there a function can be used to do it?
>
> Thanks much,
>
> Chao
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Wed Feb 01 2006 - 17:00:46 MST
This archive was generated by hypermail 2.2.0 : Thu Feb 02 2006 - 08:16:57 MST