[ncl-talk] Bug report: fbindirwrite

Mary Haley haley at ucar.edu
Tue Aug 19 11:28:57 MDT 2014


Hi Dave,

I don't believe this function was ever intended to work with strings, so in
the interim, I will add a ticket to at least have it exit with a more
graceful error.  Thanks for the report.

--Mary



On Fri, Aug 15, 2014 at 6:21 PM, Dave Allured - NOAA Affiliate <
dave.allured at noaa.gov> wrote:

> NCL team,
>
> The documentation for fbindirwrite says that the second argument may be of
> any type.  This fails for arguments of type character and string:
>
> Platform = Mac OS 10.9.4, x86_64
> NCAR Command Language Version 6.2.0
>
> ncl 0> str = "abcdef"
> ncl 1> fbindirwrite ("test.bin", str)
> fatal:Argument type mismatch on argument (1) of (fbindirwrite) can not
> coerce
> fatal:["Execute.c":8565]:Execute: Error occurred at or near line 1
>
> ncl 0> chars = stringtochar ("abcdef")
> ncl 1> fbindirwrite ("test.bin", chars)
> fatal:Argument type mismatch on argument (1) of (fbindirwrite) can not
> coerce
> fatal:["Execute.c":8565]:Execute: Error occurred at or near line 1
>
> Numerics work fine.  Please add this to the bug list with low priority.  I
> only found this while looking at that mixed types problem.  Thank you.
>
> --Dave
>
> _______________________________________________
> ncl-talk mailing list
> 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/20140819/cc172672/attachment.html 


More information about the ncl-talk mailing list