[gradsusr] Open text file and output as a csv format in GRADS
Yaqiang Wang
yaqiang.wang at gmail.com
Tue May 28 03:19:05 EDT 2013
Python, Perl or other script language are right choice to do this kind of
job.
On Tuesday, May 28, 2013, Lyndon Mark Olaguera wrote:
> Hi all,
> I have station data in a text file and I want to read it using grads and
> output as a csv file.
> The problem is the dates are separated by a backslash...
> here's a sample format:
>
> The text file contains the following data.
>
> yy/mm/dd/hh pressure rain
> TEMPERATURE wind speed
> 2012/08/06/00 10000
> 2.5 300 45
> ...
> ...
> ...
> ....
>
>
> I want to oputput this in a csv format such that the the years, months,
> days, and hours are in separated in columns...
> like:
>
> yy mm dd hh rain
> temperature wind speed
>
>
>
> I can't do it in fortran so i guess its easier to do this in GRADs..
>
>
> thanks for any help.
> Lyndon
>
>
--
*************************************************
Dr. Yaqiang Wang
Chinese Academy of Meteorological Sciences (CAMS)
46, Zhong-Guan-Cun South Avenue
Beijing, 100081
China
yaqiang.wang at gmail.com
http://www.meteothinker.com
**************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130528/7c1def46/attachment-0003.html
More information about the gradsusr
mailing list