[gradsusr] continue a line

Ricardo Hallak hallak at model.iag.usp.br
Mon Sep 17 11:52:46 EDT 2012


Hi,
another possibilite is:

'partA=lkjfkldfjlk - dfhdjlfdfbfyhdlkfh * djlfdlçfhldkf blank_space'
'partB=jhfduib + fduihfbiu *(slkjç - asjhçkld98) / 6978d6fbkdgf98ykjdgfuio'

'd 'partA%partB

Not tested, but should work.
Regards,
Ricardo

On Mon, 17 Sep 2012 02:22:24 -0500, Kevin Huyck wrote
> I havesearched for an answer to this question, too. To my knowledgethere is no line continuation syntax in GrADS. When I have along calculation, I break it into parts across several lines,often including some extra variables.
> 
> Example:
> * One line
> 'defineesat=0.611*pow(10,(7.5*(tmp_isbl-273.15))/(237.3+(tmp_isbl-273.15)))'
> 
> * Several lines. Note "undefines" when we are done with thetemporary values.
> 'define tmp=(tmp_isbl - 273.15)'
> 'define a = pow(10, (7.5 * tmp) / (237.3 + tmp))'
> 'define esat = 0.611 * a'
> 'undefine tmp'
> 'undefine a'
> 
> Hope this helps. Good luck.
> 
> 
> Kevin L. Huyck
> Forecaster, Meridian Environmental Technology, Inc.
> klhuyck at meridian-enviro.com
> 
> Composed using Mozilla Thunderbird!
> On 09/12/12 10:38, Athanasios Karagiannidis wrote:
> hello to all.
> 
> My question may be a little ...dumb, but i'm stuck!
> How can i continue a big expression (eg a sum) to the next line?
> And as a secondary question: is there a maximum character lengthfor GrADS scripts?
> 
> Thank you all.
> 
> A. Karagiannidis
> 
>Athanasios F. 
Karagiannidis
Physicist, PhD Meteorology and 
Climatology
E-mail: thankar at live.com
_______________________________________________
gradsusr mailing 
list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr

Ricardo Hallak

Departamento de Ciências Atmosféricas (ACA) 
Instituto de Astronomia, Geofísica e Ciências Atmosféricas (IAG) 
Universidade de São Paulo (USP) 
Rua do Matão, 1226 - Cidade Universitária - São Paulo SP 05508-900 
Phone.: +55 (11) 3091-2850; 3091-4703 
Fax: +55 (11) 3091-4714

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120917/665f51b1/attachment-0003.html 


More information about the gradsusr mailing list