<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=GB2312" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi dongdong,<br>
<br>
I'm not sure if this will help, but one thing you could try is this:<br>
<br>
'set t 1 522'<br>
'define zyear = ave(Zprs,t+0,t+11)'<br>
<br>
"zyear" would now have 522 time levels, each time level containing a
forward yearly average from the current time level.<br>
<br>
Please also see: <a class="moz-txt-link-freetext" href="http://grads.iges.org/grads/gadoc/variable.html#new">http://grads.iges.org/grads/gadoc/variable.html#new</a><br>
<br>
I hope this helps,<br>
Chuck<br>
<br>
dongdong wrote:
<blockquote
 cite="mid20060110115450.44156.qmail@web15907.mail.cnb.yahoo.com"
 type="cite">
  <div id="RTEContent">
  <div>Hello everyone,</div>
  <div>&nbsp;&nbsp; &nbsp;I want to&nbsp;find relations&nbsp;of&nbsp;precipitation and 500mb
pressure. Because they&nbsp;are from files with different serial and
diffenent time stride,&nbsp;I didn't know how to adjust then. Any&nbsp;help will
be&nbsp;greatly appreciated!</div>
  <div>&nbsp;</div>
  <div>&nbsp; &nbsp;precipitation is yearly,from1950 to 2000, however, pressure
is monthly 1957.9.1 ~ 2002.8.1.</div>
  <div>&nbsp;&nbsp; I&nbsp;plan to calculate yearly pressure first, my&nbsp;script is:</div>
  <div>&nbsp;</div>
  <div>'open /chdd/work4/grads_used/pressure.ctl'<br>
'set lat 0 90'<br>
'set lev 500'<br>
t=5<br>
while(t&lt;522)<br>
&nbsp;&nbsp; 'set t ' t<br>
&nbsp;&nbsp; 'define zyear=ave(Zprs,t=' t ',t=' t '+12,-b)'<br>
&nbsp;&nbsp; t=t+12<br>
endwhile</div>
  <div>&nbsp;</div>
  <div>yet, It is wrong <img moz-do-not-send="true"
 src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/15.gif">&nbsp;Whenever
I set time dimension, zyear always showing the same value. what's more,
zyear have&nbsp;value even at times i didn't define. such as t=1 ( t=1 refer
to&nbsp;1957.9.1)</div>
  <div>&nbsp;</div>
  <div>&nbsp; Can&nbsp;you help me&nbsp;get&nbsp;averaged&nbsp;pressure&nbsp;at times consistent with
precipitation, and use TCORR to find their&nbsp;space pattern?&nbsp;</div>
  <div>&nbsp;</div>
  <div>the two control files are in attachment. </div>
  <div>&nbsp;</div>
  <div>Thank you for your caring,May you all the best!!!</div>
  <div><br>
  </div>
  </div>
  <p>__________________________________________________<br>
¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä?<br>
<a class="moz-txt-link-freetext" href="http://cn.mail.yahoo.com">http://cn.mail.yahoo.com</a>
  </p>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--

********************************************************************
 Charles Seman                                <a class="moz-txt-link-abbreviated" href="mailto:charles.seman@noaa.gov">charles.seman@noaa.gov</a>
 U.S. Department of Commerce / NOAA / OAR
 Geophysical Fluid Dynamics Laboratory         voice: (609) 452-6547
 201 Forrestal Road                              fax: (609) 987-5063
 Princeton, NJ  08540-6649            <a class="moz-txt-link-freetext" href="http://www.gfdl.noaa.gov/~cjs/">http://www.gfdl.noaa.gov/~cjs/</a>
********************************************************************

"The contents of this message are mine personally and do not reflect
any position of the Government or NOAA."
</pre>
</body>
</html>