[gradsusr] making NetCDF
Huw Davies
john.huw.davies at gmail.com
Sat Jul 27 04:04:50 EDT 2013
Hello Reza. I have done something similar. This is not very elegant but I
found that the simplest thing to do is the following:
1. Use a word processing programme e.g. MS Word to 'Replace All'
spaces with a ';'. Then 'Replace All' ';;;;;;' with a ';' etc until you only
have single semi-colons. The save as .text.
2. Open*.txt in MS excel. Save as *.csv.
3. Open in matlab. Manipulate data as required. Save as *.mat.
4. Use 'ncwrite' to create NetCDF. If you have a matric followingthese
instructions:
http://www.mathworks.co.uk/support/solutions/en/data/1-A0WLUC/?product=SL
<http://www.mathworks.co.uk/support/solutions/en/data/1-A0WLUC/?product=SL&s
olution=1-A0WLUC> &solution=1-A0WLUC
5. Open in GRADS using xdfopen. You will have to create a control file
(*.dat file) - see Grads help under 'xdfopen' on how to do this.
Cheers,
HD
From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org]
On Behalf Of Mohammad Reza Pishvaei
Sent: 26 July 2013 20:34
To: gradsusr at gradsusr.org
Subject: [gradsusr] making NetCDF
Hi!
I have a txt file (attachment:
<https://mail.google.com/mail/?ui=2&ik=0c80edef41&view=att&th=1401c78a3a745d
74&attid=0.1&disp=safe&realattid=f_hj9m4wh90&zw>
2010-DCI-Shiraz.txt
<https://mail.google.com/mail/?ui=2&ik=0c80edef41&view=att&th=1401c78a3a745d
74&attid=0.1&disp=safe&realattid=f_hj9m4wh90&zw>
) and would like to change format to be as NetCDF that GrADS can read from.
Any help appreciated in advance!
REZA
--
Dr. Mohammad-Reza PISHVAEI, PhD in Meteorology and Climatology,
Water Engineering Department, College of Agriculture, Shiraz University,
71454 Shiraz, Iran.
Mobil: 0098 917 711 0698
Email: mrpishvaei at gmail.com
Website: http://www.shirazu.ac.ir/
_____
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3349 / Virus Database: 3209/6521 - Release Date: 07/25/13
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130727/62771730/attachment-0003.html
More information about the gradsusr
mailing list