<div dir="ltr">Thanks guys, <div>That's really useful for SPARC community.</div><div><br></div><div>Regards,</div><div>Chang</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 5:54 PM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@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>I have an existing NCL script that reads the ascii and creates a single netCDF file containing both variables. Also, I modified Mary's plot script to read each variable and plot the data.<br><br></div>FYI: If you look at the 'Climate Data Guide: <a href="https://climatedataguide.ucar.edu/" target="_blank">https://climatedataguide.ucar.edu/</a><br><br></div>and search on SPARC you will see assorted comments on various SPARC data sets.<br><br>---<br></div><div>It is likely, I will add a SPARC link onto NCL's Application page in the near future.<br></div><div><br></div>Good luck<br><div><br><br><div><div><br></div></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 16, 2016 at 3:30 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">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's pretty easy to read this data using NCL's "asciiread" function:</div><div class="gmail_default"><div class="gmail_default"><br></div><div class="gmail_default"><font face="monospace, monospace">temp = asciiread("temp.ascii",(/33,41,12/),"float") ; lev x lat x time</font></div><div class="gmail_default"><font face="monospace, monospace">wind = asciiread("wind.ascii",(/46,41,12/),"float")</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'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" style="font-size:12.8px" target="_blank">DKRZ: <span>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"><div><div>On Sat, Apr 16, 2016 at 12:50 PM, Xi Chang <span dir="ltr"><<a href="mailto:xi.chang01@gmail.com" target="_blank">xi.chang01@gmail.com</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><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><font color="#888888"><div>Xi Chang.</div><div><br></div><div><br></div><div><br></div><div><br></div></font></span></div>
<br></div></div>_______________________________________________<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></blockquote></div><br></div></div>
<br>_______________________________________________<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></blockquote></div><br></div>
</div></div></blockquote></div><br></div>