[ncl-talk] help

george luke lukejuliet2015 at gmail.com
Tue Aug 18 11:00:57 MDT 2015


Dear NCL users

I have two datasets , one has PrintMinMax(min=0,max=47) and second has
PrintMinMax(min=0,max=3400). When  i plot using common label bar, only
values between 0 to 100 are displayed in contours. When i incerease
contours upto 3500 I dont get small values. Below is part of my script for
contouring and colour.

When now I plot seasonal anomiales only 1 colour is displayed.

*This is what I want;  *anomalies to be plotted with different colors
showing areas of low(-ve) and high(+ve) values.




;************************************************
; create colors
;*************************************************
  wks = gsn_open_wks("x11", "seasons")          ; open  a work station


 colors = (/ (/255,255,255/),(/255,255,255/), (/244,255,244/), \
  (/217,255,217/), (/163,255,163/), (/106,255,106/), \
  (/43,255,106/), (/0,224,0/), (/0,134,0/),(/255,255,0/),\
  (/255,127,0/) /) * 1.0 ; we multiply by 1 to make colors float

 colors = colors/255.               ; normalize (required by NCL)

 ;************************************************
; create panel plots
;*************************************************
 plot   = new ( 6, graphic)                    ; create graphical array

  res                      = True               ; plot options desired

  ;res at cnFillDrawOrder      = "Predraw"
  res at cnFillOn             = True               ; turn on color fill
  res at cnInfoLabelOn        = False              ; turn off contour info
label
  res at cnLinesOn            = False              ; turn off contour lines
  res at cnLineLabelsOn       = False              ; turn off line labels
  res at cnFillPalette        =colors
  res at cnLevelSelectionMode = "ExplicitLevels"   ; set explicit contour
levels
  res at cnLevels
=(/0.1,0.2,0.4,0.8,1.6,3.2,6.4,12.8,25,30,40,45,60,75,83,100/)





thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150818/fa76c58d/attachment.html 


More information about the ncl-talk mailing list