Bernd,<br>To help me understand, could you provide a simple example?<br><br>Jeff<br><br><div class="gmail_quote">On Mon, Sep 12, 2011 at 3:03 AM, Becker, Bernd <span dir="ltr">&lt;<a href="mailto:bernd.becker@metoffice.gov.uk">bernd.becker@metoffice.gov.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><u></u>



<div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Jeff,</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">That is is the really hard part. </font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Each item fx and obs describes a chunk of a time 
series.</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">One would have to manually calculate the start and end 
dates</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">with respect to the reference dfile. </font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">If only (and I think Mike explained it a long time ago, and I 
cannot find the</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">email) one could</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">set file 1</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">set t 2 34</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">define whatever</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">set dfile 2</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">set t 6 39</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">define theother</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">and happily combine whatever with 
theother.</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Think about multimodel ensemble hindcast analysis, trying to 
composit</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">observed phenomena with modelled phenomena that simply 
</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">don&#39;t happen simultaneously. </font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">All the best,</font></span></div><div class="im">
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Bernd.</font></span></div>
<div dir="ltr" align="left"><span></span> </div>
<div><font size="2" color="#0000ff" face="Arial"></font> </div>
<p><font size="2">--<br>Bernd Becker   Climate Impacts Product 
Development<br>Met Office Hadley Centre    FitzRoy Road  
Exeter   Devon EX1 3PB  United Kingdom<br>Tel.: +44 (0) 1392 
884511 Fax: <a href="tel:%2B44%20%280%29870%20900%205050" value="+448709005050" target="_blank">+44 (0)870 900 5050</a><br><a href="mailto:E-mail%3Abernd.becker@metoffice.gov.uk" target="_blank">E-mail:bernd.becker@metoffice.gov.uk</a> - <a href="http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/bernd-becker" target="_blank">http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/bernd-becker</a><br>
<a href="http://www.metoffice.gov.uk/news/releases/archive/2011/weather-game" target="_blank">http://www.metoffice.gov.uk/news/releases/archive/2011/weather-game</a><br></font></p>
<div> </div><br>
</div><div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma"><b>From:</b> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> 
[mailto:<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] <b>On Behalf Of </b>Jeffrey 
Duda<br><b>Sent:</b> 10 September 2011 18:41<div><div></div><div class="h5"><br><b>To:</b> GrADS Users 
Forum<br><b>Subject:</b> Re: [gradsusr] define variable independent of 
time<br></div></div></font><br></div><div><div></div><div class="h5">
<div></div>You can reference the time of a variable when you use it in a 
statement.  For example, you could do<br><br>&#39;d var.2(time=12Z01JAN1996) - 
var.3(time=18Z13AUG2010)&#39;<br><br>This should help you do what you want to 
do.<br><br>Jeff Duda<br><br>
<div class="gmail_quote">On Sat, Sep 10, 2011 at 3:30 AM, Becker, Bernd <span dir="ltr">&lt;<a href="mailto:bernd.becker@metoffice.gov.uk" target="_blank">bernd.becker@metoffice.gov.uk</a>&gt;</span> 
wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote"><u></u>
  <div>
  <div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Thanks 
  Arlindo,</font></span></div>
  <div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
  <div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">That would 
  be nice for single numbers.</font></span></div>
  <div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
  <div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">It as one 
  notch more elaborate:</font></span></div>
  <div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
  <div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">  
  &#39;set dfile 2&#39;<br>  &#39;set t 2  33&#39;<br>  &#39;define 
  obs     = &#39;var&#39;.2&#39;<br></font></span></div>
  <div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"> &#39;set 
  dfile 3&#39;<br>  &#39;set t 2  33&#39;<br>  &#39;define 
  fx     = &#39;var&#39;.3&#39;<br></font></span></div>
  <div><font size="2" color="#0000ff" face="Arial"><span>file 2 and 3 have different 
  time frames.</span></font></div>
  <div><font size="2" color="#0000ff" face="Arial"><span></span></font> </div>
  <div><font size="2" color="#0000ff" face="Arial"><span>d fx-obs </span></font></div>
  <div><font size="2" color="#0000ff" face="Arial"><span></span></font> </div>
  <div><font size="2" color="#0000ff" face="Arial"><span>fails. </span></font></div>
  <div><font size="2" color="#0000ff" face="Arial"><span>And it would be a real bummer 
  to have to calculate the times from one file relative</span></font></div>
  <div><font size="2" color="#0000ff" face="Arial"><span>to the other 
  file.</span></font></div>
  <div><font size="2" color="#0000ff" face="Arial"><span></span></font> </div>
  <div><font size="2" color="#0000ff" face="Arial"><span>Compositing in this way would 
  be really hard. </span></font></div>
  <div><font size="2" color="#0000ff" face="Arial"><span></span></font> </div>
  <div><font size="2" color="#0000ff" face="Arial"><span>Enjoy the 
  weekend!<br>Bernd.</span></font></div>
  <div><font size="2" color="#0000ff" face="Arial"><span></span></font> </div>
  <p><font size="2">--<br>Bernd Becker   Climate Impacts Product 
  Development<br>Met Office Hadley Centre    FitzRoy Road  
  Exeter   Devon EX1 3PB  United Kingdom<br>Tel.: +44 (0) 1392 
  884511 Fax: <a href="tel:%2B44%20%280%29870%20900%205050" value="+448709005050" target="_blank">+44 (0)870 900 5050</a><br><a href="mailto:E-mail%3Abernd.becker@metoffice.gov.uk" target="_blank">E-mail:bernd.becker@metoffice.gov.uk</a> - <a href="http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/bernd-becker" target="_blank">http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/bernd-becker</a><br>
<a href="http://www.metoffice.gov.uk/news/releases/archive/2011/weather-game" target="_blank">http://www.metoffice.gov.uk/news/releases/archive/2011/weather-game</a><br></font></p>
  <div> </div><br>
  <div dir="ltr" align="left" lang="en-us">
  <hr>
  <font size="2" face="Tahoma"><b>From:</b> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] <b>On Behalf Of </b>Arlindo 
  da Silva<br><b>Sent:</b> 09 September 2011 17:40<br><b>To:</b> GrADS Users 
  Forum<br><b>Subject:</b> Re: [gradsusr] define variable independent of 
  time<br></font><br></div>
  <div></div>On Fri, Sep 9, 2011 at 12:05 PM, Becker, Bernd <span dir="ltr">&lt;<a href="mailto:bernd.becker@metoffice.gov.uk" target="_blank">bernd.becker@metoffice.gov.uk</a>&gt;</span> wrote:<br>
  <div class="gmail_quote">
  <blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote"><br>Simple question,<br>complicated answer:<br><br>I would 
    like to composite stuff from several  files.<br><br>Each file has its 
    own time and date info in its own .ctl file.<br><br>How can I add elements 
    from different such files?<br><br>How can I break away from the strict 
    treatment of the time dimension in<br>grads?<br><br>open file1.ctl<br>define 
    a=ave(b,t=1,t=34)<br>close 1<br>open file2.ctl<br>define c= 
    ave(b,t=3,t=9)<br>close 2<br>etc.<br><br>d a+c<br>Cannot contour grid - all 
    undefined values<br><br></blockquote>
  <div><br></div>
  <div>Try:</div>
  <div><br></div>
  <div>d a(t=1)+c(t=1)</div>
  <div><br></div>
  <div><br></div></div><font color="#888888">-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a><br></font></div><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></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></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>