[gradsusr] If else statement in grads

Endalkachew Bekele - NOAA Affiliate endalkachew.bekele at noaa.gov
Fri Sep 13 11:35:03 EDT 2013


Hello,

you may try the following approach:

if(u>=3&u<=6);Equation-1;endif
if(u>=6&u<=26);Equation-2;endif
Best regards,

EB
On Thu, Sep 12, 2013 at 4:35 AM, Jayakrishnan P.R
<prjayakrishnan at gmail.com>wrote:

>     Dear Users,
>              I have to compute the drag coefficient from Large and Pond
> equation using grads.  My main concern is that does if else statement
> effective in grads. Otherwise I will have to write a FORTRAN program and
> write the outputs and read using grads. Kindly clarify this.
> I have to do like this
> Equation-1
> if 3<=u<=6
> and Equation-2
> if 6<=u<=26.
> My version of grads is Grads 2.0.1 in Fedora core-18.
>
> --
> 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
>
> ***********************************************
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
-----------------------------------------------------------------------------------
Endalkachew Bekele
NOAA Center for Weather and Climate Prediction / CPC International Desks
5830 University Research Court, Rm 3149
College Park, Maryland 20740
Tel: (301) 683-3459
e-mail: endalkachew.bekele at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130913/a2705a17/attachment-0003.html 


More information about the gradsusr mailing list