<div dir="ltr">Hi, Guido<div>    for example, I hope to save List type as other data type to netcdf file as below.</div><div><br></div><div>







x=(/1,2,3/)<br>x!0=&quot;lat&quot;<br>y=(/6,7,8,9/)<br>y!0=&quot;lat&quot;<br>s=(/&quot;one&quot;,&quot;two&quot;,&quot;three&quot;/)<br>my=NewList(&quot;fifo&quot;)<br>ListPush(my,x)<br>ListPush(my,y)<br>ListPush(my,s)<br>lcount=ListCount(my)<br>fout=addfile(&quot;<a href="http://test.nc">test.nc</a>&quot;,&quot;c&quot;)<br>fout-&gt;my=my<br></div><div><br></div><div>Yongli</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-19 10:32 GMT-04:00 Guido Cioni <span dir="ltr">&lt;<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hey Sitan, <div>you should specify the details of your request. What you mean by “a list”? </div><div>If you just want to write a list of ordered variable that is not so long I would suggest you to use the <font face="Menlo">write_table </font>(<a href="https://www.ncl.ucar.edu/Applications/o-ascii.shtml" target="_blank">https://www.ncl.ucar.edu/Applications/o-ascii.shtml</a>) function, since creating a new netcdf file is not so straightforward.</div><div><br></div><div>Cheers<br><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>Guido Cioni</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://guidocioni.altervista.org" target="_blank">http://guidocioni.altervista.org</a> </div>

</div>
<br><div><blockquote type="cite"><div><div class="h5"><div>On 19 Apr 2016, at 16:26, Sitan Heyl &lt;<a href="mailto:heylsitan@gmail.com" target="_blank">heylsitan@gmail.com</a>&gt; wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr">Hi, All<div>   Does anyone know how to save List to a netcdf file? or how to save list to one file?</div><div><br></div><div>Best,</div><div>Yongli</div></div></div></div>
_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>