[ncl-talk] help

Dennis Shea shea at ucar.edu
Mon Aug 24 10:12:00 MDT 2015


Further, I suggest that you use

http://www.ncl.ucar.edu/Document/Functions/Contributed/stat_dispersion.shtml

This will give you a feel for the distribution of your data.

  opt = True
  opt at PrintStat = True
  statb = stat_dispersion(b, opt )

Asl Mary said ... Look at your data! That is the golden rule of data processing.




On Mon, Aug 24, 2015 at 10:03 AM, Mary Haley <haley at ucar.edu> wrote:
> In the attachment you sent, I see at least two shades of green, plus white,
> so there is more than one color showing up in the plots.
>
> Also, you are specifying 16 contour levels, but then only providing 11
> colors. That is why you are seeing some of the colors repeat themselves on
> the labelbar.  Is this what you intended?
> If you provide 16 levels, then you need to provide 17 colors, because the
> levels represents values between colors.
>
> [ For more information on how contour levels work in NCL, see conLev_3.ncl
> at http://www.ncl.ucar.edu/Applications/contourLev.shtml#ex3 ]
>
> The plot that you attached indicates that your maximum values are roughly
> less than 30, and that you have lots of values that are either missing or
> fall below 0.8 (these are the levels you specified to be white).
>
> Did you actually look at your data to verify that you have the values that
> you expect?   I recommend doing a printMinMax on your data, each time in the
> loop:
>
> printMinMax(precSeaClm(ns,:,:),0)
> printMinMax(prec1SeaClm(ns,:,:),0)
>
> If you continue to have problems with this, it would help if you could
> provide the data. You can do this offline, and you can use our ftp:
>
> http://www.ncl.ucar.edu/report_bug.shtml#HowToFTP
>
> --Mary
>
>
> On Sun, Aug 23, 2015 at 10:13 PM, afwande juliet <afwandej965 at gmail.com>
> wrote:
>>
>> ok Mary
>>
>> When I plot seasonal anomalies, only one color appears and yet the values
>> range from 0-3300. I want  different colors spread showing areas of low and
>> high rainfall anomalies. This is not shown irrespective of the contours and
>> color set.
>> see script and sample of pot i get.
>>
>> On Mon, Aug 24, 2015 at 1:02 PM, Mary Haley <haley at ucar.edu> wrote:
>>>
>>> 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
>>>>
>>>
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


More information about the ncl-talk mailing list