<!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> I want to find relations of precipitation and 500mb
pressure. Because they are from files with different serial and
diffenent time stride, I didn't know how to adjust then. Any help will
be greatly appreciated!</div>
<div> </div>
<div> precipitation is yearly,from1950 to 2000, however, pressure
is monthly 1957.9.1 ~ 2002.8.1.</div>
<div> I plan to calculate yearly pressure first, my script is:</div>
<div> </div>
<div>'open /chdd/work4/grads_used/pressure.ctl'<br>
'set lat 0 90'<br>
'set lev 500'<br>
t=5<br>
while(t<522)<br>
'set t ' t<br>
'define zyear=ave(Zprs,t=' t ',t=' t '+12,-b)'<br>
t=t+12<br>
endwhile</div>
<div> </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"> Whenever
I set time dimension, zyear always showing the same value. what's more,
zyear have value even at times i didn't define. such as t=1 ( t=1 refer
to 1957.9.1)</div>
<div> </div>
<div> Can you help me get averaged pressure at times consistent with
precipitation, and use TCORR to find their space pattern? </div>
<div> </div>
<div>the two control files are in attachment. </div>
<div> </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>