Average function
Cottet, Loic (IFPRI)
l.cottet at CGIAR.ORG
Mon May 22 17:54:10 EDT 2006
Hi all,
I am trying to do the difference between 2 averages.
It does not work:
ga-> d (ave(tas,t=2,t=1190)-ave(tas.2,t=2,t=1190))
Averaging. dim = 3, start = 2, end = 1190
Averaging. dim = 3, start = 2, end = 1190
Data Request Error: Invalid grid coordinates
World coordinates convert to non-integer grid coordinates
Variable = tas.2 Dimension = 3
Operation Error: Error from ave function
Error ocurred at column 22
DISPLAY error: Invalid expression
Expression = (ave(tas,t=2,t=1190)-ave(tas.2,t=2,t=1190))
So I tried to put the same level (z=1)
ga-> set z 1
LEV set to 0 0
ga-> d (ave(tas,t=2,t=1190)-ave(tas.2,t=2,t=1190))
Averaging. dim = 3, start = 2, end = 1190
Averaging. dim = 3, start = 2, end = 1190
Data Request Error: Invalid grid coordinates
World coordinates convert to non-integer grid coordinates
Variable = tas.2 Dimension = 3
Operation Error: Error from ave function
Error ocurred at column 22
DISPLAY error: Invalid expression
Expression = (ave(tas,t=2,t=1190)-ave(tas.2,t=2,t=1190))
It still has not worked,
Can anyone help me out,
I do not understand how else to do it because it works when I do a simple
difference between those 2 temperature files:
ga-> set z 1
LEV set to 0 0
ga-> d ((tas.2(t=1190)-tas.2(t=2)-(tas(t=1190)-tas(t=2))))
Contouring: -25 to 15 interval 5
I really would grateful to your help,
Thanks a lot,
Loic
More information about the gradsusr
mailing list