<div dir="ltr">Hi Mary,<div><br></div><div>Thanks for the advice. With your suggestion, I get output that looks like this:</div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">(0)<span class="" style="white-space:pre">        </span>location=(41.147,-104.801) grid=(41.1275,-104.777)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">(0)<span class="" style="white-space:pre">        </span>====== Contents of 'test.csv' ======</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Pressure(hPa) Height(km) Temperature(C) Dew Point(C) Wind Speed(m/s) Wind Direction(deg)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">100</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">125</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">150</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">175</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">200</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">225</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">250</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">275</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">300</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">325</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">350</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">375</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">400</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">425</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">450</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">475</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">500</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">525</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">550</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">575</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">600</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">625</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">650</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">675</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">700</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">725</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">750</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">775</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">800</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">(0)<span class="" style="white-space:pre">        </span>========================================</p></div><div><br></div><div><br></div><div>So, the pressure data get written, but the rest of the data do not. Any more help would be much appreciated!</div></div><div class="gmail_extra"><br clear="all"><div><div class="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 Wed, Apr 6, 2016 at 4:44 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@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 class="gmail_default" style="font-size:small">Michelle,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I think the issue is that you are trying to write float data using "%s". Try changing</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><p> <span></span>write_table("test.csv", "a", data, "%s")<span>        </span>;fill in data</p><div>to:</div></div><div class="gmail_default" style="font-size:small">
<p><span></span>write_table("test.csv", "a", data, "%g")<span>        </span>;fill in data</p><span class="HOEnZb"><font color="#888888">
<p>--Mary</p><p><br></p>
<p><br></p></font></span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Apr 4, 2016 at 9:16 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><span style="border-collapse:collapse;font-size:13px">Hi all,<div><br></div><div>With the attached script and RUC data (<a href="https://www.dropbox.com/s/926ue7ad7vngnhc/ruc2anl_130_20090605_2100_000.grb2?dl=0" target="_blank">https://www.dropbox.com/s/926ue7ad7vngnhc/ruc2anl_130_20090605_2100_000.grb2?dl=0</a>), I am plotting a skew-T, and I would like to save that data to a csv file. When I run the script, I get</div><div><br></div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">(0)<span style="white-space:pre-wrap">        </span>location=(41.147,-104.801) grid=(41.1275,-104.777)</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">(0)<span style="white-space:pre-wrap">        </span>====== Contents of 'test.csv' ======</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">Pressure(hPa) Height(km) Temperature(C) Dew Point(C) Wind Speed(m/s) Wind Direction(deg)</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo">(0)<span style="white-space:pre-wrap">        </span>========================================</p></div><div><br></div><div><font face="arial, helvetica, sans-serif">or something similar. I feel that I am close to getting this, but the way I am looping through the data is what is confusing me. I appreciate the help.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Thank you,</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Michelle</font></div></span></div><br clear="all"><div><div><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><span class="">_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>