<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Rabah,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I see Karin already responded, and had the same response I was just about to send!</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I&#39;ll go ahead and include my response here. I&#39;ve updated the documentation to indicate this behavior, and also created a ticket just in case.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Unfortunately, I think this is a &quot;feature&quot; of write_table. Even if there&#39;s a case for declaring this a bug, we probably couldn&#39;t change the behavior because we&#39;d likely break a bunch of existing scripts that depend on the space being there.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I created a ticket on this (NCL-2646), in case it&#39;s an issue for other users.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Meanwhile, as Karin pointed out, I think the only way around this is to concatenate the strings yourself:</div><div class="gmail_default">







<p class="m_-94122198865401503gmail-p1"><font face="monospace, monospace">int1 = 2<br>int2 = &quot;99999&quot;<br>int3 = &quot;99999&quot;<br>int4 = &quot;99999&quot;<br>int5 = &quot;99999&quot;<br>int6 = &quot;99999&quot;<br>int7 = &quot;99999&quot;<br>int_cat = int2+int3+int4+int5+int6+int7<br>sounding_check = [/int1,int_cat/]<br>write_table(outfile,&quot;w&quot;,<wbr>sounding_check,&quot;%2i%s&quot;)</font></p><p class="m_-94122198865401503gmail-p1" style="font-size:small"><span class="m_-94122198865401503gmail-s1">In general, I would caution against writing numbers to a file without any spaces, because this makes it potentially very difficult for somebody else looking at the file to know how to read it.  However, I do understand that some of these files have historically been written this way for other purposes</span></p><p class="m_-94122198865401503gmail-p1" style="font-size:small"><span class="m_-94122198865401503gmail-s1">--Mary</span></p><p class="m_-94122198865401503gmail-p1" style="font-size:small"><span class="m_-94122198865401503gmail-s1"><br></span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 9, 2017 at 3:13 PM, Rabah Hachelaf <span dir="ltr">&lt;<a href="mailto:hachelaf@sca.uqam.ca" target="_blank">hachelaf@sca.uqam.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br clear="all"><div><div style="font-size:12.8px">Hello,</div><div style="font-size:12.8px">I am wounding why there is a systematic white-spaces between values although they are removed from the format specifier. </div><div style="font-size:12.8px">How can i remove white spaces from in this case.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thank you</div><div style="font-size:12.8px">   </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">begin</div><div style="font-size:12.8px">outfile = &quot;test.txt&quot;</div><div style="font-size:12.8px">sounding_check = [/2,&quot;99999&quot;,&quot;99999&quot;,&quot;99999&quot;,&quot;9<wbr>9999&quot;,&quot;99999&quot;,&quot;99999&quot;/]</div><div style="font-size:12.8px">write_table(outfile,&quot;a&quot;,soundi<wbr>ng_check,&quot;%2i%s%s%s%s%s%s&quot;)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">end</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">output : </div><div style="font-size:12.8px"> 2 99999 99999 99999 99999 99999 99999</div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_6849795089286736669gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>------------------------------</div>Best regards,<br>Rabah Hachelaf <br>   <br><br></div></div></div></div>
</font></span></div>
<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>