[ncl-talk] common labelbar levels

Noelia otero noeli1680 at gmail.com
Tue Jun 21 12:47:44 MDT 2016


Hi,

Ok, I see, then I'll define it in that way.

Thanks again!

2016-06-21 19:37 GMT+02:00 Dennis Shea <shea at ucar.edu>:

> Also, of possible use ...
>
> If you are not sure of a 'good' common min/max/interval to use see
>
> http://www.ncl.ucar.edu/Document/Functions/Built-in/nice_mnmxintvl.shtml
>
> Example 3
>
> You can the use
>
>   res@*cnLevelSelectionMode* <http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSelectionMode> = "ManualLevels"
>   res@*cnMinLevelValF* <http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnMinLevelValF>       = mnmxint(0)
>   res@*cnMaxLevelValF* <http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnMaxLevelValF>       = mnmxint(1)
>   res@*cnLevelSpacingF* <http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSpacingF>      = mnmxint(2)
>
>
>
> On Tue, Jun 21, 2016 at 11:18 AM, Adam Phillips <asphilli at ucar.edu> wrote:
>
>> Hi Noelia,
>> Correct. You either let NCL decide the levels (AutomaticLevels) or you do
>> not. NCL may pick the same contour levels for each panel if the plotted
>> data is similar in range from one panel to the next, but it very likely
>> will not. It is recommended that you set the contour levels yourself, and
>> thus you will need to know the range of your plotted data. You can use
>> stat_dispersion to statistically analyze the arrays that are to be plotted:
>> http://www.ncl.ucar.edu/Document/Functions/Contributed/stat_dispersion.shtml
>>
>> Adam
>>
>>
>>
>>
>>
>>
>> On Tue, Jun 21, 2016 at 11:10 AM, Noelia otero <noeli1680 at gmail.com>
>> wrote:
>>
>>> Hi Adam,
>>>
>>> So, if I have 10 plots I should set ManualLevels, specifically with the
>>> max or min value ..I mean I have to know what these values are to set the
>>> levels, right? There is no way to set automatically these levels,  isn't
>>> there? I though that using AutomaticLevels should be fine, but seeing my
>>> plots, it isn't..
>>>
>>> Then, I guess, I have to get those values previously to define the label?
>>>
>>> Thanks again for the help,
>>>
>>> Cheers
>>>
>>> 2016-06-21 18:59 GMT+02:00 Adam Phillips <asphilli at ucar.edu>:
>>>
>>>> Hi Noelia,
>>>> If you do not set cnLevelSelectionMode (to ManualLevels or
>>>> ExplicitLevels) then NCL will determine the contour levels for each
>>>> individual plot, and they can be different. See examples 1 and 4 here:
>>>> http://www.ncl.ucar.edu/Applications/contourLev.shtml
>>>> Hope that helps!
>>>> Adam
>>>>
>>>>
>>>> On Tue, Jun 21, 2016 at 10:45 AM, Noelia otero <noeli1680 at gmail.com>
>>>> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I'm using a common labelbar for several plots. However it isn't
>>>>> working properly, because it seems that it is taking the values of the
>>>>> first plot, and then, the levels are wrong for the rest of them. I don't
>>>>> know if I have to define always "Manual levels"..What I am defining:
>>>>>
>>>>>   res = True
>>>>>   res at gsnAddCyclic   = False
>>>>>   res at gsnMaximize    = True
>>>>>   res at gsnDraw        = False
>>>>>   res at gsnFrame       = False
>>>>>   res at lbLabelBarOn   = False ;not individual labelbar
>>>>>   res at lbAutoManage   = True
>>>>>
>>>>>   res at mpMinLatF      = min(lat)
>>>>>   res at mpMaxLatF      = max(lat)
>>>>>   res at mpMinLonF      = min(lon)
>>>>>   res at mpMaxLonF      = max(lon)
>>>>>   res at cnLinesOn      = False
>>>>>   res at cnFillOn       = True
>>>>>
>>>>> ;for the panel
>>>>>   panelres = True
>>>>>   panelres at gsnFrame = False
>>>>>   panelres at gsnMaximize = True
>>>>>   panelres at gsnMaximize = True
>>>>>   panelres at txFontHeightF = 0.01
>>>>>   panelres at gsnPanelLabelBar = True
>>>>>   panelres at gsnPanelBottom = 0.06
>>>>>   panelres at lbLabelFontHeightF = .006
>>>>>   panelres at pmLabelBarWidthF = 0.35 ;label bar width
>>>>>
>>>>> But the levels are wrong...what did I miss?
>>>>>
>>>>> Many thanks!
>>>>>
>>>>> Cheers
>>>>>
>>>>> Noelia
>>>>>
>>>>> _______________________________________________
>>>>> ncl-talk mailing list
>>>>> ncl-talk at ucar.edu
>>>>> List instructions, subscriber options, unsubscribe:
>>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Adam Phillips
>>>> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
>>>> www.cgd.ucar.edu/staff/asphilli/   303-497-1726
>>>>
>>>> <http://www.cgd.ucar.edu/staff/asphilli>
>>>>
>>>
>>>
>>
>>
>> --
>> Adam Phillips
>> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
>> www.cgd.ucar.edu/staff/asphilli/   303-497-1726
>>
>> <http://www.cgd.ucar.edu/staff/asphilli>
>>
>> _______________________________________________
>> 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/20160621/88e2069b/attachment.html 


More information about the ncl-talk mailing list