[ncl-talk] Bug report: fbindirwrite

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Tue Aug 19 13:02:12 MDT 2014


Mary,

Please also reconcile the function documentation with the actual function
behavior.  Currently it says:

   "var
   A variable of any dimensionality and type."

Thanks.

--Dave


On Tue, Aug 19, 2014 at 11:28 AM, Mary Haley <haley at ucar.edu> wrote:

> 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/2ebbfcc1/attachment.html 


More information about the ncl-talk mailing list