<div dir="ltr"><div class="gmail_default" style="font-size:small">Xi,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I noticed that this website provided ASCII data, so I chose to use that instead of the binary data:</div><div class="gmail_default" style="font-size:small"><br>







<a href="ftp://sparc-ftp1.ceda.ac.uk/sparc/ref_clim/randel/temp_wind/" target="_blank"><span>f</span><span>tp://sparc-</span><span>f</span><span>tp1.ceda.ac.uk/sparc/re</span><span>f</span><span>_clim/randel/temp_wind/</span></a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It&#39;s pretty easy to read this data using NCL&#39;s &quot;asciiread&quot; function:</div><div class="gmail_default"><div class="gmail_default"><br></div><div class="gmail_default"><font face="monospace, monospace">temp = asciiread(&quot;temp.ascii&quot;,(/33,41,12/),&quot;float&quot;) ; lev x lat x time</font></div><div class="gmail_default"><font face="monospace, monospace">wind = asciiread(&quot;wind.ascii&quot;,(/46,41,12/),&quot;float&quot;)</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Note the ordering is opposite of the Fortran code they provide in the README file.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">I&#39;ve attached two scripts, one that does a very basic read of your data and a series of plots, and one that is much more customized, in that it creates the time, lat, and level coordinates for your data and does a 3 x 4 panel plot of both sets of variables.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><div style="font-size:12.8px">If you are new to NCL, please see:<br><br></div><div style="font-size:12.8px"><a href="https://dl.dropboxusercontent.com/u/8357888/homepage/tutoriais/ncl/NCL_Tutorial_V1.1.pdf" target="_blank" style="font-size:12.8px">DKRZ: <span class="">NCL</span> Tutorial Version 1.1</a><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">--Mary</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 16, 2016 at 12:50 PM, Xi Chang <span dir="ltr">&lt;<a href="mailto:xi.chang01@gmail.com" target="_blank">xi.chang01@gmail.com</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">Dear NCL,<div><br></div><div>Im wondering how to plot the zonal mean wind and temperature</div><div>from SPARC dataset here <a href="http://www.sparc-climate.org/data-center/data-access/reference-climatologies/randels-climatologies/temperature-wind-climatology/" target="_blank">http://www.sparc-climate.org/data-center/data-access/reference-climatologies/randels-climatologies/temperature-wind-climatology/</a></div><div>with a format <b>wind.dat</b> dan <b>temp.dat</b> using NCL?</div><div><br></div><div>Anyhelp would be really appreciated.</div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Xi Chang.</div><div><br></div><div><br></div><div><br></div><div><br></div></font></span></div>
<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div></div>