[ncl-talk] gsn_csm_vector_scalar_map

Xi Chang xi.chang01 at gmail.com
Fri Feb 5 11:00:22 MST 2016


Hello...

Could you please tell me how to control the contour interval for color
shading once im using this function  *gsn_csm_vector_scalar_map*.

;===========PLOT=================

  wks = gsn_open_wks("png","overlay")

  res                       = True              ; plot mods desired
  plot = new(16,graphic)

  res at gsnDraw             = False           ; don't draw
  res at gsnFrame            = False           ; don't advance frame

; vector rescoures
  res at vcRefLengthF             = 0.045
  res at vcRefMagnitudeF          = 20.0
  res at vcRefAnnoOrthogonalPosF  = -0.12
  res at vcRefAnnoParallelPosF    =  0.997
  res at vcRefAnnoFontHeightF     = 0.015
  res at vcMinDistanceF          = 0.03
  res at lbLabelBarOn        = False

  res at mpProjection   = "AzimuthalEquidistant"  ; choose map projection
  res at mpLimitMode    = "LatLon"          ; use lat/lon coordinates to limit
area
  res at mpMinLatF      = 25.
  res at mpMaxLatF      = 75.
  res at mpMinLonF      = -80.
  res at mpMaxLonF      = 20.
  res at gsnMaximize           = True





*  res at gsnScalarContour        = True  res at cnFillOn                = True
res at cnFillPalette           = "gui_default"     ; set color map
res at cnLinesOn               = False             ; turn off contour lines*


  do i=0,15
  plot(i)  = gsn_csm_vector_scalar_map(wks,u(i,:,:),v(i,:,:), \
                                   p(i,:,:),res)
  end do

  resP                     = True                ; modify the panel plot
  resP at gsnMaximize           = True
  gsn_panel(wks,plot,(/4,4/),resP)               ; now draw as one plot


end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160205/ba62f96e/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: overlay.png
Type: image/png
Size: 442946 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160205/ba62f96e/attachment-0001.png 


More information about the ncl-talk mailing list