Gamal,<br>You can refer to other files using a dot and the file name. For example, if you open several consecutive WRF files such as<br><br>WRF_20110901_1200.ctl<br>WRF_20110901_1800.ctl<br>WRF_20110902_2000.ctl<br><br>(assuming each file contains 6 hours of WRF output), then the variables associated with the second file will have a ".2" appended to them; likewise the variables associated with the nth file will have a ".n" appended to them.)<br>
<br>In your script you just need to add the ".n" (or the corresponding number) to keep track of which variables to use when computing the trajectories according to the particular file the time is in. It may end up being fairly complex, but I think you can do it. Good luck.<br>
<br>Jeff Duda<br><br><div class="gmail_quote">On Sat, Sep 3, 2011 at 11:31 AM, Dr.Gamal El Afandi <span dir="ltr"><<a href="mailto:gamalafandy@yahoo.com">gamalafandy@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi everybody,</span></div><div><span></span> </div><div><span>I was able to use Grads to calculate and plot back-<span><span>trajectories</span></span> but there are
some limitations related to that script (I can open just one file for each
calculation) I need to think about. The main issue is that each <span>WRF</span> file
contains only part of the daily values simulated for Indiana we need to get 24
hours back trajectories because the <span>WRF</span> output is in <span>UTC</span>. Therefore in order to
calculate 24 hours back trajectories I would need to open simultaneously
multiple files and in some way change the code (if it is possible to manage this
issue) in order to get all the values and make Grads computing the trajectories.
My main concern is that once I open 2 files I will have exactly the same
variable names so I don't know if it is possible within that code to refer to a
specific value/variable and compute our trajectories correctly.</span></div><div><span>please let me know if you have any suggestions, so that maybe I can try.</span></div><div></div><div> </div><div><font face="times new roman, new york, times, serif">With my kind regards</font></div>
<div><font face="times new roman, new york, times, serif">Gamal</font></div><div><font face="times new roman, new york, times, serif">_____________________________________________________</font></div><div><div><div><div><font face="times new roman, new york, times, serif"><b><font size="-0"><font size="-0">Dr.Gamal <span>Salah</span> El Afandi,Senior Researcher.<br>
Data to Insight Center<span> </span>of <span><span><span style="border-bottom-color:currentColor;border-bottom-width:medium;border-bottom-style:none"><span>Pervasive Technology Institute</span></span></span></span></font></font></b></font></div>
<div><font face="times new roman, new york, times, serif"><b><span><span><span style="border-bottom-color:currentColor;border-bottom-width:medium;border-bottom-style:none"><span>Indiana University <span>Bloomington</span> USA</span></span></span></span></b></font></div>
<div><b><font size="-0">2719 E 10<span>th</span> St.<br>Innovation Center </font></b></div><div><div><b><font size="3">Room 130C. </font></b></div></div><div><b><span style="border-bottom-color:currentColor;border-bottom-width:medium;border-bottom-style:none"><font size="-0"><span>Bloomington</span>, IN 47408,USA</font></span></b></div>
<div><span style="border-bottom-color:currentColor;border-bottom-width:medium;border-bottom-style:none"><div class="MsoNormal"><span style="color:rgb(118, 146, 60)"><font size="-0"><font size="-0"><font size="-0"><font size="-0"><b><font color="#000000">Phone:+1 <span style="border-bottom-color:rgb(54, 99, 136);border-bottom-width:2px;border-bottom-style:dotted"><a href="tel:812-856-2146" value="+18128562146" target="_blank">812-856-2146</a></span></font></b></font></font></font></font></span></div>
<div class="MsoNormal"><span><span style="border-bottom-color:rgb(54, 99, 136);border-bottom-width:2px;border-bottom-style:dotted"></span><font size="-0"><font size="-0"><b><font color="#000000">Fax: <a href="tel:%2B1%20812-856-1735" value="+18128561735" target="_blank">+1 812-856-1735</a></font></b></font></font></span></div>
<div class="MsoNormal"><span><b></b></span> </div></span></div><div><span></span><b><u><font color="#0066cc"><a href="http://as.cms.rtinfo.indiana.edu/d2i/people" rel="nofollow" target="_blank">http://as.cms.rtinfo.indiana.edu/d2i/people</a></font></u></b></div>
<div><b><a href="http://pervasivetechnologylabs.iu.edu/d2i/people" rel="nofollow" target="_blank">http://pervasivetechnologylabs.iu.edu/d2i/people</a></b></div><div><b><font face="times new roman, new york, times, serif"> </font></b></div>
<div><b><font face="times new roman, new york, times, serif">Al <span>Azhar</span> University </font></b></div><div><b><font face="times new roman, new york, times, serif">Faculty of science at Cairo </font></b></div><div>
<b><font face="times new roman, new york, times, serif">Department of Astronomy and Meteorology</font></b></div><div><b><font face="times new roman, new york, times, serif"><span>Nasr</span> City,Postal Code
11884</font></b></div><div><font face="times new roman, new york, times, serif"><b>Cairo,</b><b>Egypt</b></font></div><div><a href="http://maindb.unfccc.int/public/roe/expert_list.pl?id_country=66" rel="nofollow" target="_blank">http://maindb.unfccc.int/public/roe/expert_list.pl?id_country=66</a>&</div>
<div><u><font color="#0000ff" face="times new roman, new york, times, serif"><a href="http://www.itap.purdue.edu/pto/NATO_KEEO/partCoDir_en.html" rel="nofollow" target="_blank">http://www.itap.purdue.edu/pto/NATO_KEEO/partCoDir_en.html</a></font></u><a href="http://www.itap.purdue.edu/pto/NATO_KEEO/index_en.html" rel="nofollow" target="_blank"></a></div>
<div><a href="http://www.ucar.edu/governance/iap/iapreps.shtml" rel="nofollow" target="_blank"><font color="#0000ff" face="times new roman, new york, times, serif">http://www.ucar.edu/governance/iap/iapreps.shtml</font></a><br>
<b><font face="times new roman, new york, times, serif">Tel. 0020238701259
Home Tel. 0020222618163 Work <br>Tel. 0020103770593 Cell Fax 0020222629356 Work </font></b></div><div><b><font face="times new roman, new york, times, serif">________________________________________________________<br>
</font></b></div></div></div></div></div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br><a href="http://www.meteor.iastate.edu/%7Ejdduda" target="_blank">www.meteor.iastate.edu/~jdduda</a><br>