[gradsusr] If else statement in grads

Jayakrishnan P.R prjayakrishnan at gmail.com
Sat Sep 14 01:21:17 EDT 2013


I have tried the method as suggested by users. Still some errors. I
herewith attach the gs file I used for the computation. Could anyone point
out the errors.?

'reinit'
'sdfopen d:/Ekman_transport/uwnd.2009.nc'
'sdfopen d:/Ekman_transport/vwnd.2009.nc'
'set lev 1000'
'define W=mag(uwnd,vwnd.2)'
if(W>=3&W<=6);
define cd=(0.29+3.1/W+7.7/W**2)/1000;
endif
if(W>=6&W<=26);
define cd=(0.6+0.07*W);
endif
'define taux=1.3*cd*W*uwnd'
'define tauy=1.3*cd*W*vwnd.2'
'd cd'
'printim D:/Ekman_transport/cdrag1.jpg white'

Thnaking You.


-- 
Sincerely
***********************************************
Jayakrishnan.P.R
Teaching Associate (Atmospheric Science)
Academy of Climate Change Education and Research
Kerala Agricultural University
Vellanikkara-680 656

and also

Research Fellow (Part Time)
Department of Atmospheric Sciences
CUSAT, Cochin-682 016
Kerala, India.
Mob: 09496026547

***********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130914/5b0b60da/attachment-0003.html 


More information about the gradsusr mailing list