how to take long in aave

Rajesh J rajeshj at CUSAT.AC.IN
Mon Sep 12 06:56:47 EDT 2005


dear gradsusers,
i have a problem regarding how to take the longitude in area averages when
it comes like 350 to 20. when i took longitude as -10 to 20 and 350 to 380
it gives different answers. why is it so. i paste the script below. please
help.


'reinit'
'sdfopen x.nc'
'set lev 250'

tt=1900
while(tt<=2005)
'define y'tt'=ave(x,time=sep'tt-1',time=nov'tt-1')'
tt=tt+1
endwhile

'set lat 15'
'set lon -10'
tt=1900
while(tt<=2005)
'define kk=aave(y'tt',lon=350,lon=380,lat=35,lat=45)'

************************************************************************
**  when this line is set as                                             *
**  'define kk=aave(y'tt',lon=-10,lon=20,lat=35,lat=45)'                 *
**  the answer is different in 'x.dat' but when i plot some parameter    *
**  with lon set either of these way it gives the same area. i mean, it  *
  **  displays the same geographical area. so what could happen wrong?
*
************************************************************************

'd kk'
say result
te=subwrd (result,4)
w=write('x.dat',te)
tt=tt+1
endwhile


**************************************************************

thanking you,
rajesh



More information about the gradsusr mailing list