<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hey Michelle,<div class="">if your goal is simply to write data from a GRIB file into a CSV file, why do you need to plot the data with <font face="Menlo" class="">skewt</font>? I would suggest you to read and organize the data that you want from the grib file and then use the <font face="Menlo" class="">write_table</font> function. See the attached example. </div><div class=""><br class=""></div><div class=""><div class=""> <font face="Menlo" class="">header=“T Td RH"</font></div><div class=""><font face="Menlo" class=""> alist=[/temp,dewpoint,humidity/]</font></div><div class=""><font face="Menlo" class=""> hlist=[/header/]</font></div><div class=""><font face="Menlo" class=""> write_table(“file.csv","w",hlist,"%s")</font></div><div class=""><font face="Menlo" class=""> write_table(“file.csv”,"w",alist,”%f,%f,%f,%f")</font></div><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class="Apple-interchange-newline">Guido Cioni</div><div class=""><a href="http://guidocioni.altervista.org" class="">http://guidocioni.altervista.org</a> </div><div class=""><br class=""></div></div><br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline"></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">Il giorno 05 apr 2016, alle ore 05:16, Michelle Serino <<a href="mailto:mmserino@tamu.edu" class="">mmserino@tamu.edu</a>> ha scritto:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><span class="" style="border-collapse:collapse;font-size:13px">Hi all,<div class=""><br class=""></div><div class="">With the attached script and RUC data (<a href="https://www.dropbox.com/s/926ue7ad7vngnhc/ruc2anl_130_20090605_2100_000.grb2?dl=0" class="">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 class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">(0)<span style="white-space:pre-wrap" class="">        </span>location=(41.147,-104.801) grid=(41.1275,-104.777)</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">(0)<span style="white-space:pre-wrap" class="">        </span>====== Contents of 'test.csv' ======</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Pressure(hPa) Height(km) Temperature(C) Dew Point(C) Wind Speed(m/s) Wind Direction(deg)</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">?</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">(0)<span style="white-space:pre-wrap" class="">        </span>========================================</div></div><div class=""><br class=""></div><div class=""><font face="arial, helvetica, sans-serif" class="">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 class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div class=""><font face="arial, helvetica, sans-serif" class="">Thank you,</font></div><div class=""><font face="arial, helvetica, sans-serif" class=""><br class=""></font></div><div class=""><font face="arial, helvetica, sans-serif" class="">Michelle</font></div></span></div><br clear="all" class=""><div class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">Michelle M. Serino<div class="">M.S. Candidate</div><div class=""><span style="font-size:small" class="">Texas A&M University</span><br class=""></div><div class="">Atmospheric Sciences Dept.</div><div class="">Eller O&M, Suite 1017</div><div class="">College Station, TX 77843<br class=""></div><div class="">(484) 769-0949</div></div></div></div></div></div></div></div></div></div></div></div>
</div>
<span id="cid:84B8B5FC-8E9B-4B41-968D-6FBC57560ED2@fritz.box"><sounding13.ncl></span>_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></body></html>