<font color="#3333ff">Hi Muhammad,</font><div><font color="#3333ff"><br></font></div><div><font color="#3333ff">I'm using TRMM 3B42 Rainfall data sample on this <a href="http://disc2.nascom.nasa.gov/daac-bin/OTF/HTTP_services.cgi?FILENAME=%2Fdata%2Fs4pa%2FTRMM_L3%2FTRMM_3B42%2F2005%2F001%2F3B42.050101.21.6.HDF.Z&LABEL=3B42.050101.21.6.nc&SHORTNAME=TRMM_3B42&SERVICE=NetCDF&VERSION=1.02">link</a>.. The data is Netcdf with each 3hrs as a different file..I.e 3*8*365 files(=timesteps)in a year...</font></div>
<div><font color="#3333ff"><br></font></div><div><font color="#3333ff">I was thinking of doing a shell script to open and run the grads script for all the time steps producing the text output for some modelling application.. I'm running Opengrads in Windows and also I have access to a Unix server-based one..</font></div>
<div><font class="Apple-style-span" color="#3333FF"><br></font></div><div><font color="#3333ff">Thanks and Regards</font></div><div><br><div class="gmail_quote">On Tue, Mar 1, 2011 at 6:32 PM, Muhammad Rahiz <span dir="ltr"><<a href="mailto:muhammad.rahiz@ouce.ox.ac.uk">muhammad.rahiz@ouce.ox.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Felix,<br>
<br>
At each lon & lat, you want to extract rainfall at every time step i.e. 3 hours? Is that what you want to do? If yes, then<br>
1. how many time steps are you dealing with?<br>
2. what is the format of your file i.e. ctl or netcdf? If ctl, then I need two samples of the filename.<br>
3. are you using GrADS in windows or linux?<br>
<br>
Off the top of my head, what you need is a double loop. If you could give me the details above, then I could modify a similar script that I have.<br>
<br>
--<div class="im"><br>
Muhammad Rahiz<br>
Researcher & DPhil Candidate (Climate Systems & Policy)<br>
School of Geography & the Environment<br>
University of Oxford<br>
<br>
On Tue, 1 Mar 2011, Felix Mutua wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Thanks Muhammad,<br>
I've looked at it before...But my challenge is that I have to do this for<br>
many files (TRMM 3 hrly precipitation data) for one year..Is there a way I<br>
can automate or just get the formatted output in Grads?<br>
<br>
Thanks<br>
<br>
Regards<br>
<br>
On Tue, Mar 1, 2011 at 5:28 PM, Muhammad Rahiz<br>
<<a href="mailto:muhammad.rahiz@ouce.ox.ac.uk" target="_blank">muhammad.rahiz@ouce.ox.ac.uk</a>> wrote:<br></div>
You need the <a href="http://fprintf.gs" target="_blank">fprintf.gs</a> script, available athttp://<a href="http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_var" target="_blank">cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_var</a><div class="im">
<br>
iable_data_to_a_text_file.<br>
<br>
<br>
Muhammad Rahiz<br>
Researcher & DPhil Candidate (Climate Systems & Policy)<br>
School of Geography & the Environment<br>
University of Oxford<br>
<br>
<br>
On Tue, 1 Mar 2011, Felix Mutua wrote:<br>
<br>
Hi All, Could someone kindly assist..I'm trying to export<br>
a variable into an<br>
text output in this format ( with header)<br>
<br>
Lat Lon Pre<br>
...........................................................<br>
1.5 34.5 4.56<br>
2.0 34.0 3.46<br>
.. .... ......<br>
.. .... ......<br>
<br>
For a specified period...<br>
<br>
Any help greatly appreciated<br>
<br>
<br>
Regards<br>
<br>
Felix <br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
<br>
<br>
</div></blockquote>
</blockquote></div><br><br clear="all"><br>-- <br>_________________________________________________________<br>Felix Mutua<br>School of Engineering, The University of Tokyo<br>River Engineering and Environment Laboratory<br>
7-3-1 Hongo Bunkyo-ku, Tokyo 113-8656, Japan<br>Phone +81-80-3553-0339,<div>E-mail: <a href="mailto:Felix.mutua@gmail.com" target="_blank">Felix.mutua@gmail.com</a>, <a href="mailto:f-mutua@hydra.t.u-tokyo.ac.jp" target="_blank">f-mutua@hydra.t.u-tokyo.ac.jp</a><br>
Skype: Felix.mutua</div><br>
</div>