<div dir="ltr"><div>Dear Sir,<br></div>            Thanks. It worked. I also searched similar issues in grads archives and found one solution with if else statement by Serge Claudio and it worked well for me. But Still I could not include the second if condition which is if(W&gt;=6&amp;W&lt;=26);&#39;define c=(0.6+0.07*W)/1000&#39;;. generally this will be included in the else statement except only during certain conditions such as cyclones. But Still any way to include this too in the script..?. The following is the currently working script with the output figure attached. <br>

<div class="gmail_extra"><br>&#39;reinit&#39;
<br>&#39;sdfopen <a href="http://uwnd.2009.nc">uwnd.2009.nc</a>&#39;
<br>&#39;sdfopen <a href="http://vwnd.2009.nc">vwnd.2009.nc</a>&#39;
<br>&#39;set lev 1000&#39;<br>&#39;set lat -10 45&#39;<br>&#39;set lon 30 110&#39;
<br>&#39;define W=mag(uwnd,vwnd.2)&#39;<br>if (W&gt;= 3&amp;W&lt;= 6)<br>&#39;define cd=(0.29+3.1/W+7.7/W**2)/1000&#39;<br>else<br>&#39;define cd=(0.6+0.07*W)/1000&#39;<br>endif<br>&#39;define taux=1.3*cd*W*uwnd&#39;
<br>&#39;define tauy=1.3*cd*W*vwnd.2&#39;
<br>&#39;d cd&#39;
<br>&#39;printim cdrag2.jpg white&#39;<br><br><br>-- <br>Sincerely<br>***********************************************<br>Jayakrishnan.P.R<br>Teaching Associate (Atmospheric Science)<br>Academy of Climate Change Education and Research<br>

Kerala Agricultural University<br>Vellanikkara-680 656<br><br>and also<br><br>Research Fellow (Part Time)<br>Department of Atmospheric Sciences<br>CUSAT, Cochin-682 016<br>Kerala, India.<br>Mob: 09496026547<br><br>***********************************************
</div></div>