<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-7"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#0000c0">
<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>
<div class="moz-signature"><span class="postbody"><span
style="font-size: 10pt; font-family: "Trebuchet MS";
color: rgb(0, 0, 192);">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>
</div>
<br>
On 09/12/12 10:38, Athanasios Karagiannidis wrote:
<blockquote cite="mid:SNT118-W36BFE72EDD7FE2399AD8EFC8920@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
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 class="moz-txt-link-abbreviated" href="mailto:thankar@live.com">thankar@live.com</a></pre>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
</body>
</html>