[gradsusr] Help - Grads doesn't exibit the result at terminal on stat mode

Eric Altshuler ela at cola.iges.org
Tue Mar 13 17:40:42 EDT 2012


Hello Elias,

You need to define a1 as a grads data variable, not a script variable:

'a1=0'
...
'a1 = a1 + (aave(t2.'f'(t=9),lon=-58,lon=-48,lat=-34,lat=-22) - aave(t2.'f+1'(t=1),lon=-58,lon=-48,lat=-34,lat=-22))' 
...
'd a1'

Best regards,

Eric L. Altshuler
Assistant Research Scientist
Center for Ocean-Land-Atmosphere Studies
4041 Powder Mill Road, Suite 302
Calverton, MD 20705-3106
USA

E-mail: ela at cola.iges.org
Phone: (301) 902-1257
Fax: (301) 595-9793

----- Original Message -----
From: "Elias Lima" <elias.gl at hotmail.com>
To: gradsusr at gradsusr.org
Sent: Friday, March 9, 2012 3:19:47 PM
Subject: [gradsusr] Help - Grads doesn't exibit the result at terminal on	stat mode





Hi, my objective with the script above is to obtain a number that is able to show a mean value of an area (an image), my work involves to verify the quality of the forecast produzed by the WRF model. So I calculate the mean value predictioned and subtract with the value observed. The problem is the GrADS calculate everytinhg bus does not show any result, simplely reset. How is possible to see I want the resul at terminal. I really hope the somebody can help me 



***were opened all *.ctl . 
. 

. 

**********************To calculate the temperature at 2m 


'set gxout stat' 


a1=0 


f=1 


while (f<=arq) 


a1 = a1 '+ (aave(t2.'f'(t=9),lon=-58,lon=-48,lat=-34,lat=-22) - aave(t2.'f+1'(t=1),lon=-58,lon=-48,lat=-34,lat=-22))' 


f=f+1 
endwhile 

'd 'a1 
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr



More information about the gradsusr mailing list