<div dir="ltr">Mary,<div><br></div><div>Please also reconcile the function documentation with the actual function behavior. Currently it says:<br><br> "var<br> A variable of any dimensionality and type."</div>
<div><br></div><div>Thanks.<br><br>--Dave</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 19, 2014 at 11:28 AM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:small">Hi Dave,</div><div style="font-size:small"><br></div><div style="font-size:small">
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.</div>
<div style="font-size:small"><br></div><div style="font-size:small">--Mary</div><div style="font-size:small"><br></div></div><div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Aug 15, 2014 at 6:21 PM, Dave Allured - NOAA Affiliate <span dir="ltr"><<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">NCL team,<br><br>The documentation for fbindirwrite says that the second argument may be of any type. This fails for arguments of type character and string:<div><br></div><div>Platform = Mac OS 10.9.4, x86_64</div>
<div>NCAR Command Language Version 6.2.0<br><br></div><div>ncl 0> str = "abcdef"<br>ncl 1> fbindirwrite ("test.bin", str)<br>fatal:Argument type mismatch on argument (1) of (fbindirwrite) can not coerce<br>
fatal:["Execute.c":8565]:Execute: Error occurred at or near line 1<br><br>ncl 0> chars = stringtochar ("abcdef")<br>ncl 1> fbindirwrite ("test.bin", chars)<br>fatal:Argument type mismatch on argument (1) of (fbindirwrite) can not coerce<br>
fatal:["Execute.c":8565]:Execute: Error occurred at or near line 1<br></div><div><br></div><div>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.</div>
<span><font color="#888888">
<div><br></div><div>--Dave</div></font></span></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div>