<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#0000c0">
    <font face="sans-serif">I didn't realize that. Thank you, Jennifer.
      I've tested this technique and it works in both examples below...<br>
      <br>
    </font><tt>dwind = 'pow(ugrd_isbl(z-1)-ugrd_isbl,2) + '<br>
      'define dwind = 'dwind % 'pow(vgrd_isbl(z-1)-ugrd_isbl,2)'</tt><br>
    <br>
    <tt>dwind = 'pow(ugrd_isbl(z-1)-ugrd_isbl,2) + '<br>
      dwind = dwind % 'pow(vgrd_isbl(z-1)-ugrd_isbl,2)'<br>
      'define dwind =' dwind</tt><br>
    <div class="moz-signature"><span class="postbody"><span
          style="font-size: 10pt; font-family: &quot;Trebuchet MS&quot;;
          color: rgb(0, 0, 192);"><br>
          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/17/12 06:56, Jennifer Adams wrote:
    <blockquote
      cite="mid:AA56FDF0-C49F-4153-A50D-BF36A92B6781@cola.iges.org"
      type="cite">Kevin's technique can make your long expressions a
      little more readable, but there is also this option:&nbsp;
      <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-1"
              http-equiv="Content-Type">
            <div bgcolor="#ffffff" text="#0000c0"> <span
                class="postbody"><span style="font-size: 10pt;
                  font-family: &quot;Trebuchet MS&quot;; 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: &quot;Trebuchet
                    MS&quot;; color: rgb(0, 0, 192);">Kevin L. Huyck<br>
                    Forecaster, Meridian Environmental Technology, Inc.<br>
                    <a moz-do-not-send="true"
                      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 moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
              </blockquote>
            </div>
            <span>&lt;klhuyck.vcf&gt;</span>_______________________________________________<br>
            gradsusr mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
            <a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
          </blockquote>
        </div>
        <br>
        <div apple-content-edited="true">
          <span class="Apple-style-span" style="border-collapse:
            separate; border-spacing: 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-indent: 0px;
            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; 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-indent: 0px;
              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; 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-indent: 0px; 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 moz-do-not-send="true"
                    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>
      <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>