Python, Perl or other script language are right choice to do this kind of job.<br><br>On Tuesday, May 28, 2013, Lyndon Mark Olaguera  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><div>Hi all,<br></div>I have station data in a text file and I want to read it using grads and output as a csv file.<br></div>The problem is the dates are separated by a backslash...<br></div>


here&#39;s a sample format:<br><br></div><div>The text file contains the following data.<br></div><div><br></div>yy/mm/dd/hh               pressure           rain              TEMPERATURE      wind speed<br><div><div>2012/08/06/00               10000               2.5                         300                   45<br>


...<br>...<br>...<br>....<br><br><br></div><div>I want to oputput this in a csv format such that the the years, months, days, and hours are in separated in columns...<br></div><div>like:<br><br></div><div>yy             mm           dd      hh      rain       temperature           wind speed<br>


<br><br><br></div><div>I can&#39;t do it in fortran so i guess its easier to do this in GRADs..<br><br><br></div><div>thanks for any help.<br></div><div>Lyndon <br><br></div></div></div>
</blockquote><br><br>-- <br>*************************************************<br>Dr. Yaqiang Wang<br>Chinese Academy of Meteorological Sciences (CAMS)<br>46, Zhong-Guan-Cun South Avenue<br>Beijing, 100081<br>China<br>             <br>
<a href="mailto:yaqiang.wang@gmail.com" target="_blank">yaqiang.wang@gmail.com</a><br><br><a href="http://www.meteothinker.com" target="_blank">http://www.meteothinker.com</a><br>**************************************************<br>