>
> hello!
>
> Thank you for your attention!
>
> I using :
>
> wks=gsn_open_wks("ps",diro+"DJFcmtctldiff79-98TUV200hPa")
>
> gsn_define_colormap(wks,"BlAqGrYeOrReVi200")
>
>
> res = True
> res = True
> res@gsnSpreadColors = True
> res@gsnSpreadColorEnd = 193
> res@gsnSpreadColorStart = 6
> res@lbLabelStride = 2
> i = NhlNewColor(wks,0.7,0.7,0.7)
>
> res@vcRefMagnitudeF = 5.0
> res@vcRefLengthF = 0.050
> res@vcGlyphStyle = "CurlyVector"
> res@vcMinDistanceF = 0.017
>
> res@cnLevelSelectionMode = "ManualLevels"
> res@cnMinLevelValF = -10.0
> res@cnMaxLevelValF = 10
> res@cnLevelSpacingF = 1
>
>
> plot = new(1,graphic)
> plot=gsn_csm_vector_scalar_map_ce(wks,diff2(5,:,:),diff3(5,:,:),diff1(5,:,:),res)
>
>
>
> I get the answer is :
>
> warning:cnLevelSelectionMode is not a valid resource
> in /DJFcmtctldiff79-98TUV200hPa_vector at this time
> warning:cnMinLevelValF is not a valid resource in
> /DJFcmtctldiff79-98TUV200hPa_vector at this time
> warning:cnMaxLevelValF is not a valid resource in
> /DJFcmtctldiff79-98TUV200hPa_vector at this time
> warning:cnLevelSpacingF is not a valid resource in
> /DJFcmtctldiff79-98TUV200hPa_vector at this time
>
> Do anyone know how to change the scalar of the color
> bar?
>
>
Liping,
If you want the "gsn_csm_vector_scalar_map_ce" function to produce
separate contours from the scalar field, and not just color the
vectors according to the scalar field (which is the default), you need
to set:
res@gsnScalarContour = True
This should get rid of the warning messages, and produce a plot
with vectors and contours.
--Mary
_______________________________________________
ncl-talk mailing list
ncl-talk AT ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Fri Oct 29 2004 - 10:46:41 MDT