<div dir="ltr"><div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/str_get_tab.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/str_get_tab.shtml</a><br><br></div><b>UNTESTED</b>: Lets say you want 10 numbers for each row with all numbers preceded by a <b>tab.<br></b></div><b>Note: </b><br><dl><dt><i>fout</i>
</dt><dd>String specifying the output file name. If not present, the data
is sent to standard out. <br></dd><dd><b>The maximum length of <i>fout</i> is 96
characters.</b></dd></dl><p>I think the fortran character variable is set at 96<br></p><b></b><div><b>---<br></b><div><pre><span style="font-family:arial,helvetica,sans-serif">tab = <strong>str_get_tab</strong>()<br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif">fmt = </span>"10("+tab+",f7.1)" ; clarity<br></pre><pre>print("fmt="+fmt)<br></pre><pre>opt = True<br></pre><pre>opt@fout "./TEXT_with_TAB" ; "./test/text_with_tab/"<br></pre><pre>system("/bin/rm -f "+opt@fout) ; rm any pre-existing file</pre><pre><span style="font-family:arial,helvetica,sans-serif"></span></pre>write_matrix (x, fmt, False)<br><br></div><div>Let ncl-talk know if this works.<br><br></div><div>THX<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 22, 2018 at 8:20 PM, wen <span dir="ltr"><<a href="mailto:wenguanhuan@163.com" target="_blank">wenguanhuan@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:10px;font-family:Arial"><div>Hi all,</div><div> I want to write a 2 dimensional data into a file using function write_matrix. I expect to separate data with character tab. How can I realize that? Hope you can help. Thank you!</div><br><br><br><br><div style="zoom:1">--<br><div>Best regards,</div><div>Guanhuan Wen</div><div style="clear:both"></div></div></div><br><br><span title="neteasefooter"><p> </p></span><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>