<div dir="ltr"><div class="gmail_default" style="font-size:small">Dear Rick,<br></div><div class="gmail_default" style="font-size:small"> Yours suggestion works. Thank you very much. <br><br></div><div class="gmail_default" style="font-size:small">regards<br></div><div class="gmail_default" style="font-size:small">Steeven Paul <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 12, 2016 at 10:13 PM, Rick Brownrigg <span dir="ltr"><<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@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><div><div>Hi Steeven,<br><br></div>I believe this may be a bug -- it appears as through in the implementation of write_table, it is not prepared to handle elements in the list of type logical. I'll file a ticket on this. In the meantime, you should be able to work around by converting to string-types; something like this:<br><br>yes_no1 = where(prob1.lt.siglvl,"True","<wbr>False")<br> yes_no2 = where(prob2.lt.siglvl,"True","<wbr>False")<br><br></div>Hope that helps...<br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Sep 12, 2016 at 9:11 AM, Steeven Paul Yerraguntla <span dir="ltr"><<a href="mailto:steevenpaul@gmail.com" target="_blank">steevenpaul@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div style="font-size:small" class="gmail_default">Dear NCL user,<br></div><div style="font-size:small" class="gmail_default"> I wanted to save three variables using the following NCL(version 6.1.0) code<br>===========================<br> slno = ispan(1,dimsizes(ccr1),1) <br> yes_no1 = where(prob1.lt.siglvl,True,Fal<wbr>se)<br> yes_no2 = where(prob2.lt.siglvl,True,Fal<wbr>se)<br> print(yes_no1)<br> print(yes_no2)<br></div><div style="font-size:small" class="gmail_default"> print(slno)<br></div><div style="font-size:small" class="gmail_default">====== Output for above print funtions ===========<br>Variable: yes_no1<br>Type: logical<br>Total Size: 104 bytes<br> 26 values<br>Number of Dimensions: 1<br>Dimensions and sizes: [26]<br>Coordinates: <br>True<br>True<br>True<br>True<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br><br>Variable: yes_no2<br>Type: logical<br>Total Size: 104 bytes<br> 26 values<br>Number of Dimensions: 1<br>Dimensions and sizes: [26]<br>Coordinates: <br>True<br>True<br>True<br>True<br>True<br>True<br>True<br>True<br>True<br>False<br>False<br>False<br>False<br>True<br>True<br>True<br>True<br>True<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br>False<br><br>Variable: slno<br>Type: integer<br>Total Size: 104 bytes<br> 26 values<br>Number of Dimensions: 1<br>Dimensions and sizes: [26]<br>Coordinates: <br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<br>19<br>20<br>21<br>22<br>23<br>24<br>25<br>26<br>==============================<wbr>=============<br></div><div style="font-size:small" class="gmail_default">I wanted to save the above three variables to a text file, using write_table function as follows and not able to get as i am facing the following error statement. <br><br>write_table("test.txt","w",[/s<wbr>lno,yes_no1,yes_no2/],"%2d %s %s")<br><br>error Statement:<b> in file: userAddFuncs.c, line: 4633<br> UNRECOGANIZED thevalue->multidval.data_type 0x10000<br></b></div><div style="font-size:small" class="gmail_default">Please let me know how to sort out of this problem.<br><br></div><div style="font-size:small" class="gmail_default">regards<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div style="font-size:small" class="gmail_default">Steeven Paul<br></div><div style="font-size:small" class="gmail_default"><br><br></div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>