<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Kevin's technique can make your long expressions a little more readable, but there is also this option: <div><br></div><div>cmd='blah blah blah'</div><div>cmd=cmd%'blah blah blah'</div><div>cmd=cmd%'blah blah blah'</div><div><br></div><div>--Jennifer</div><div><br></div><div><br></div><div><br><div><div>On Sep 17, 2012, at 3:22 AM, Kevin Huyck wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=ISO-8859-7" http-equiv="Content-Type">
<div 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>
</div>
<span><klhuyck.vcf></span>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></span>
</div>
<br></div></body></html>