3hourly data to daily data

Arindam Chakraborty arch at IO.MET.FSU.EDU
Wed Feb 22 17:12:14 EST 2006


Hi,
 Please change 'd ave(u,t=t1,t=t1+7)' to
'd ave(u,t='t1',t='t1+7')'

because t1 is a script variable and should be outside the single
quotes.

--

On Wed, 22 Feb 2006, John Guhin wrote:

> Hi,
>        I was wondering if someone can find the mistake. I am trying to
> convert a 3 hourly data to daily data.
> The original data is 3D.  any help will be appreciated.
> ----------------------------------------------------------------------
> * Program to write 3 hourly data to daily data
> 'reinit'
> 'c'
> 'set gxout fwrite'
> 'set fwrite u_daily.dat'
> 'open u.ctl'
> 'set lon 40 180'
> 'set lat -10 10'
> 'set lev 850'
> t1=1
> while(t1<977)
> 'set t 't1
> 'd ave(u,t=t1,t=t1+7)'
> t1=t1+8
> endwhile
>  --------------------------------------------------------------------------------------------------
>



More information about the gradsusr mailing list