<div dir="ltr">Hi Rick,<div><br></div><div>Thanks for getting back to me so quickly. I see now that I was incorrect in thinking the line <font face="monospace, monospace">header = [/str_join(fields," ")/]</font> specified the delimiter type, and I did not realize that it is defined when I actually write the data to the file. What I currently have is <font face="monospace, monospace">write_table(n+"Analysis13_"+lat(n)+"_"+lon(n)+"_"+itime+".csv", "a", data, "%g%g%g%g%g%g%g")</font>, which I now understand is the default spacing. So following what you said, if I wanted a space delimiter, for example, that line of code would look like <font face="monospace, monospace">write_table(n+"Analysis13_"+lat(n)+"_"+lon(n)+"_"+itime+".csv", "a", data, "%g %g %g %g %g %g %g")</font>.</div><div><br></div><div>Thank you for the clarification!</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Michelle M. Serino<div>M.S. Candidate</div><div><span style="font-size:small">Texas A&M University</span><br></div><div>Atmospheric Sciences Dept.</div><div>Eller O&M, Suite 1017</div><div>College Station, TX 77843<br></div><div>(484) 769-0949</div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Nov 4, 2016 at 3:05 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 Michelle,<br><br></div>I'm not sure what the question is. The output is consistent with the documented behavior of write_table -- which states that if no explicit with is given in the format codes, then the "default" behavior results (hence, the variable-length, per-variable, per-value widths). If you want nice tabular output, use explicit widths. On the other hand, "CSV" means comma-separated: if you want commas in the output, change you format to look something like "%g,%g,%g,%g,%g,%g,%g"<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 Fri, Nov 4, 2016 at 1:31 PM, Michelle Serino <span dir="ltr"><<a href="mailto:mmserino@tamu.edu" target="_blank">mmserino@tamu.edu</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>Good afternoon everyone,</div><div><br></div><span id="m_8181014047850634018m_-1030244428624171724goog_1529731578"></span><span id="m_8181014047850634018m_-1030244428624171724goog_1529731579"></span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A___&d=CwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=axzYETCU2Q6BwUQ0oChDwWUa0fCFFhoM2SO1K3AgTeA&m=rJtiU3x52zJMZM59kkWVY7lLmbe1rG_fgGfOxnlq69I&s=YXaCbla295JlfeVTJsRqepoL7bkPAI80ZaDshCYXfNA&e=" target="_blank"></a><div>I have code (attached) that creates soundings from RUC data (<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__drive.google.com_file_d_0B0VUa1xUjt5GaUVkMFd5MlgxWGM_view-3Fusp-3Dsharing&d=CwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=axzYETCU2Q6BwUQ0oChDwWUa0fCFFhoM2SO1K3AgTeA&m=rJtiU3x52zJMZM59kkWVY7lLmbe1rG_fgGfOxnlq69I&s=F0_4G8-QMxqAlJfNUy_6XJDBhIlcbBXnzcNl0Ey90Vg&e=" target="_blank">data</a>) and writes that data to csv files. The delimiter is a single space, but when looking at the csv file (screen shot attached), the spacing is not consistent. It appears that this is due to simply the size of the numbers in other columns, but it seems to be affecting other code I have that reads this file. The only place the delimiter is specified is on line 116 of my code, and below that is where I write the data to the file. I do not currently have direct access to my code, so I hope the format I provided is easily executable. I appreciate the help.</div><div><br></div><div>Thank you,</div><div><br></div><div>Michelle Serino</div><br clear="all"><div><div class="m_8181014047850634018m_-1030244428624171724gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Michelle M. Serino<div>M.S. Candidate</div><div><span style="font-size:small">Texas A&M University</span><br></div><div>Atmospheric Sciences Dept.</div><div>Eller O&M, Suite 1017</div><div>College Station, TX 77843<br></div><div><a href="tel:%28484%29%20769-0949" value="+14847690949" target="_blank">(484) 769-0949</a></div></div></div></div></div></div></div></div></div></div></div></div>
</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="https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=CwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=axzYETCU2Q6BwUQ0oChDwWUa0fCFFhoM2SO1K3AgTeA&m=rJtiU3x52zJMZM59kkWVY7lLmbe1rG_fgGfOxnlq69I&s=y6HXtjuOWb8_CMCUgwHnhgHQjR0PkwY8Wc7DiKbqvHg&e=" 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>