[ncl-talk] help

Mary Haley haley at ucar.edu
Sun Aug 23 22:02:05 MDT 2015


I'm not sure what you are asking for, since you didn't provide the full
script or a sample image.

Please be more specific about what kind of plot you are trying to create:
for example, do you want to draw filled contours of both datasets on the
same plot, but each with its own set of colors and levels?    How are
creating the contour plot(s)?  You only included the resource settings.

Also, what do you mean by "low(-ve)" and "high(+ve)" values?  Your said
your values start at 0, so I'm assuming you don't have any negative values.

--Mary


On Tue, Aug 18, 2015 at 11:00 AM, george luke <lukejuliet2015 at gmail.com>
wrote:

> 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
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150823/b6909a97/attachment.html 


More information about the ncl-talk mailing list