[ncl-talk] "bug" in get_ref_line_options v6.4.0

Alan Brammer abrammer at albany.edu
Tue Jan 16 08:34:58 MST 2018


NCL devs:

Came across a bug in 6.4.0 when plotting a bar chart through gsn_csm_xy()
that stems to a call to get_ref_line_options()

at line 4588 in gsn_csm.ncl a variable is initialised as
      ref_line = 0 ; setting ref_line to be an integer

but then a couple lines down on line 4607  there is:
    ref_line = get_res_value_keep(rfres,"trYMinF",min(y))
but unless y or trYMinF are integers this will fail with an Assignment Type
mismatch.


Easy fix is to replace = with := on line 4607 in gsn_csm.ncl  (line 23
of get_ref_line_options)

Function doesn't appear to exist in versions before 6.4.0 so seems like a
new problem.


Thanks,

Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180116/805274e6/attachment.html>


More information about the ncl-talk mailing list