<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
Hi,
<br />another possibilite is:
<br />
<br />'partA=lkjfkldfjlk - dfhdjlfdfbfyhdlkfh * djlfdlçfhldkf blank_space'
<br />'partB=jhfduib + fduihfbiu *(slkjç - asjhçkld98) / 6978d6fbkdgf98ykjdgfuio'
<br />
<br />'d 'partA%partB
<br />
<br />Not tested, but should work.
<br />Regards,
<br />Ricardo
<br />
<br /><font size="2"><b>On Mon, 17 Sep 2012 02:22:24 -0500, Kevin Huyck wrote</b>
<br />>
<span class="postbody"><span style="font-size: 10pt; font-family: "Trebuchet MS"; color: rgb(0, 0, 192);">I
have
searched for an answer to this question, too. To my
knowledge
there is no line continuation syntax in GrADS. When I have
a
long calculation, I break it into parts across several
lines,
often including some extra variables.
<br />>
<br />>
Example:
<br />>
* One line
<br />>
'define
esat=0.611*pow(10,(7.5*(tmp_isbl-273.15))/(237.3+(tmp_isbl-273.15)))'
<br />>
<br />>
* Several lines. Note "undefines" when we are done with
the
temporary values.
<br />>
'define tmp=(tmp_isbl - 273.15)'
<br />>
'define a = pow(10, (7.5 * tmp) / (237.3 + tmp))'
<br />>
'define esat = 0.611 * a'
<br />>
'undefine tmp'
<br />>
'undefine a'
<br />>
<br />>
Hope this helps. Good luck.
<br />>
<br />>
</span></span>
<br />> <span class="postbody"><span style="font-size: 10pt;">Kevin L. Huyck
<br />>
Forecaster, Meridian Environmental Technology, Inc.
<br />>
<a href="mailto:klhuyck@meridian-enviro.com">
klhuyck@meridian-enviro.com</a>
<br />>
<br />>
Composed using Mozilla
Thunderbird!</span></span>
<br />>
On 09/12/12 10:38, Athanasios Karagiannidis
wrote:
<blockquote type="cite" cite="mid:SNT118-W36BFE72EDD7FE2399AD8EFC8920@phx.gbl">
<!-- style
begin
style end
-->
<br />>
hello to all.
<br />>
<br />>
My question may be a little ...dumb, but i'm stuck!
<br />>
How can i continue a big expression (eg a sum) to the next line?
<br />>
And as a secondary question: is there a maximum character
length
for GrADS scripts?
<br />>
<br />>
Thank you all.
<br />>
<br />>
A. Karagiannidis
<br />>
<br />>
<pre>Athanasios F.
Karagiannidis
Physicist, PhD Meteorology and
Climatology
E-mail: <a href="mailto:thankar@live.com" class="moz-txt-link-abbreviated">thankar@live.com</a></pre>
<pre wrap=""><fieldset class="mimeAttachmentHeader" />
_______________________________________________
gradsusr mailing
list
<a href="mailto:gradsusr@gradsusr.org" class="moz-txt-link-abbreviated">gradsusr@gradsusr.org</a>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" class="moz-txt-link-freetext">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
<br />
<br />
<br />Ricardo Hallak
<br />
<br />
Departamento de Ciências Atmosféricas (ACA)
<br />
Instituto de Astronomia, Geofísica e Ciências Atmosféricas (IAG)
<br />
Universidade de São Paulo (USP)
<br />
Rua do Matão, 1226 - Cidade Universitária - São Paulo SP 05508-900
<br />
Phone.: +55 (11) 3091-2850; 3091-4703
<br />
Fax: +55 (11) 3091-4714
<br />
<br />
</font>
</BODY>
</HTML>