[ncl-talk] Possible label bar bug in streamline scalar plots

Mary Haley haley at ucar.edu
Wed Jan 17 13:53:17 MST 2018


​Hil Will,

You are right, this is a problem and I was able to make an existing test
fail by setting this.​

There's a weird work-around, and that is to set:

  res at gsnOldLabelBar = False

​This is a hidden resource that is used to switch between two methods for
creating a labelbar.  It's code we are testing out, but we are not ready to
make public yet. This resource is one that will allow users to switch
between the two methods of creating the labelbar, should we ever decide to
go ahead with it.

I have already fixed this for 6.5.0, so you will be able to remove the
work-around then.

Thanks for the report.

--Mary




On Tue, Jan 16, 2018 at 5:26 PM, Will Hobbs via ncl-talk <ncl-talk at ucar.edu>
wrote:

>
>
> Hi
>
>
>
> When I make a streamline plot using the function
> gsn_csm_streamline_scalar_map_polar() with the lbLabelBarOn resource set
> to False, I get the following error:
>
>
>
> fatal:Variable (lbar_zone) is undefined
>
> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 12166 in
> file /usr/local/ncl-6.4.0/lib/ncarg/nclscripts/csm/gsn_csm.ncl
>
>
>
> I had a quick look at the gsn_csm.ncl code, it looks like there’s a series
> of ‘if’ statements regarding label bar settings, which are not avoided even
> though the variable ‘lbar_on’ is False.
>
>
>
> The script I’m running reads a LOT of datafiles so I’m hesitant to send it
> through with all dependencies, but if I’m right it should be easy replicate
> with any data
>
>
>
>
>
> Will
>
>
>
>
>
> University of Tasmania Electronic Communications Policy (December, 2014).
> This email is confidential, and is for the intended recipient only.
> Access, disclosure, copying, distribution, or reliance on any of it by
> anyone outside the intended recipient organisation is prohibited and may be
> a criminal offence. Please delete if obtained in error and email
> confirmation to the sender. The views expressed in this email are not
> necessarily the views of the University of Tasmania, unless clearly
> intended otherwise.
>
> _______________________________________________
> 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/20180117/4ffa7422/attachment.html>


More information about the ncl-talk mailing list