[ncl-talk] Pie Chart problem

Adam Phillips asphilli at ucar.edu
Thu Aug 8 15:23:22 MDT 2019


Hi Jie,
It looks like a bug was introduced to pie_chart after NCL 6.4.0. I have
attached a version of pie_chart that will work. Note you will have to load
the attached function at the top of your script to use it. The new function
is called pie_chart2. Note: There is no support for this function, or the
original pie_chart function.
Adam


On Thu, Aug 8, 2019 at 2:27 AM WUJIE via ncl-talk <ncl-talk at ucar.edu> wrote:

>
> Hi all
>
> I again tested and found it works in version 6.4. But it does not work in
> version 6.5, seems strange.
>
>  http://www.ncl.ucar.edu/Applications/Scripts/pie_chart_1.ncl
>
> Thanks,
>
> Jie
>
>
> ------------------ Original ------------------
> *From:* "ncl-talk"<ncl-talk at ucar.edu>;
> *Date:* Thu, Aug 8, 2019 03:08 PM
> *To:* "ncl-talk"<ncl-talk at ucar.edu>;
> *Subject:* [ncl-talk] Pie Chart problem
>
> Hi NCL Experts:
>
> Does anyone meet the problem in current Pie Chart script?
> I just learn the Pie Chart from http://www.ncl.ucar.edu/Applications/pie_chart.shtml
> , which looks not difficult. However, the example script does not work
> with imply as:
>  "Error occured at or near line 4172 in file
> $NCAR_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
> fatal:Number of subscripts do not match number of dimensions of
> variable,(2) Subscripts used, (1) Subscripts expected
>
> The example script is here:
> http://www.ncl.ucar.edu/Applications/Scripts/pie_chart_1.ncl
>
> I would appreciate if anyone could help.
>
> Regards
> Jie Wu
> _______________________________________________
> 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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190808/7052cb19/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pie_chart2.ncl
Type: text/x-ncl
Size: 8277 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190808/7052cb19/attachment.bin>


More information about the ncl-talk mailing list